Hi, You're right, i was using default variables and extra parameters to override but i thought that maybe i can also use it for basic system playbooks. Thanks.
On Wednesday, September 10, 2014 3:23:00 PM UTC+2, Michael DeHaan wrote: > > Nope, it doesn't do this. Simple as that :) > > I'd suggest setting a role default instead, or putting a good default > value in group_vars/all, and you can override that on the CLI with "-e". > > vars_prompt in Ansible is not *usually* a good idea as it limits the > ability of someone to automate a workflow in Ansible, since it's > interactive. > > > > > > > On Wed, Sep 10, 2014 at 4:59 AM, Serkan C. <[email protected] > <javascript:>> wrote: > >> Hi Micheal, >> Do you have any advice for it? It doesn't accept when condition. >> Best. >> >> >> On Tuesday, January 28, 2014 3:42:14 PM UTC+1, Michael DeHaan wrote: >>> >>> There's no mechanism for this. >>> >>> vars_prompt always prompts for the variable. >>> >>> >>> >>> >>> On Tue, Jan 28, 2014 at 9:25 AM, Marcin Prączko <[email protected]> >>> wrote: >>> >>>> Hi, >>>> >>>> Have question whether is possible (ansible 1.4.2 >) setup prompt for >>>> volue for variable in variable is not defined. >>>> >>>> For example: >>>> First run of playbook: >>>> - variable is not defined >>>> - ask for value >>>> - task write value of variable to some ansible vars file >>>> >>>> ... Do other tasks... >>>> >>>> Next run of playbook: >>>> - variable is read from ansible vars file >>>> - no prompt for value >>>> >>>> >>>> ... Do other tasks .... >>>> >>>> Tried find this in ansible help, but so far no luck. >>>> >>>> Best regards, >>>> Marcin Praczko >>>> >>>> -- >>>> 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]. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>> >>> >>> >>> -- >>> Michael DeHaan <[email protected]> >>> CTO, AnsibleWorks, Inc. >>> http://www.ansibleworks.com/ >>> >>> -- >> 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] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/17d6663d-a8de-4069-ba0b-2e5f4a8ccc3f%40googlegroups.com >> >> <https://groups.google.com/d/msgid/ansible-project/17d6663d-a8de-4069-ba0b-2e5f4a8ccc3f%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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/6d98cde9-af44-4522-b6e8-1f9891c7efe6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
