How do you set up a confirmation prompt before running a playbook?
I'd like to have to enter "YES" before the playbook makes any changes to
hosts. Right now I have the following code in site.yml, but it's not
working.
vars_prompt:
- name: "confirmation"
prompt: "Are you sure you want to run this playbook? Answer with 'YES'"
default: "NO"
private: no
failed_when: "confirmation != YES"
--
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/486d9afb-6fc3-4527-8555-60ecae8d437b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.