rule #1 of templating: moustaches do not stack!

you cannot have {{ }} inside {{ }}. rewrite as:

 username: "{{ username if username is defined else ansible_user_id }}"

or

username: {{ username|default(ansible_user_id) }}

or

vars_prompt:
   name: username
   default: "{{ansible_user_id}}

^ vars prompt is automatically overridden by -e.
----------
Brian Coca

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7eRXV9ua%2BFh3AzK-iZ2zc%3D_f6xiVLtQjpD6Tp7a4mu01w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to