Hi Marko,
When script printed "Please enter group name for user: [{{ username
}}]:" I thought that it understood {{ username }} as a string, but after
your reply I tried to debug groupname value it works thank you, but now
I have other issue I want to use {{ username }} in my group's prompt
msg, when I wrote:
- name: "groupname"
prompt: "Please enter group name for user {{ username }}"
private: no
default: "{{ username }}"
msg of promt is:
Please enter group name for user {{ username }} [{{ username }}]:
I want to see typed user name instead of {{ username }}
On 2/9/2017 4:49 PM, Stankovic, Marko wrote:
Hi,
I'm not getting a syntax error with
default: "{{ username }}"
It works (the default value is assigned if no input),
but the default value is not templated in the prompt.
This is printed instead:
Please enter group name for user: [{{ username }}]:
I believe it's related to this issue:
https://github.com/ansible/ansible/issues/16675
Cheers,
Marko
CONFIDENTIALITY NOTICE: This message is the property of International Game
Technology PLC and/or its subsidiaries and may contain proprietary,
confidential or trade secret information. This message is intended solely for
the use of the addressee. If you are not the intended recipient and have
received this message in error, please delete this message from your system.
Any unauthorized reading, distribution, copying, or other use of this message
or its attachments is strictly prohibited.
--
Best Regards,
Stepan Harutyunyan
--
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/fb10540a-0a4e-afd9-f4a5-3b9b9dbdb040%40gmail.com.
For more options, visit https://groups.google.com/d/optout.