Hello,

The following playbook extract used to work with Ansible 2.4 :

---
- hosts: localhost
  gather_facts: no
  vars_prompt:
    - name: "user_password"
      prompt: "Shadow password"
      private: no
    - name: "user_password_prod"
      prompt: "Shadow password for prod (Enter to keep the same)"
      private: no
      default: "{{ user_password }}"

Now using Ansible 2.7.8 I get an error :
ERROR! 'user_password' is undefined

The playbook does not even prompt me at all.

Is there a workaround for this ? How else can I re-use a previous variable 
as a default in a prompt ?
Thank you for your help.
Mathieu.

-- 
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/071b9a92-8322-4145-bfc1-573dc70d3947%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to