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"
--To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/600eb96a-95cd-46c1-ad9e-8293b97457b6%40googlegroups.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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
This got me thinking that we kinda need an action to mimic any_errors_fatal in a task, would be very helpful in cases like this.. where you need to trigger a whole playbook failure conditionlly without affecting the default failure behavior.. anything like that in the works?
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/gDzrZVQ3AMw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgxQ3d-%2BouBr2YezD-no0N%2BiJsegq_m5stKycU6QOvaJ_A%40mail.gmail.com.
Maybe a fail_all module or a modification of the current fail module to add an all argument?
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAEgsm8P3hdxe5TXkfzdsu27GD2AUHq5VxbN1LAf%2B0icVk_kSUQ%40mail.gmail.com.
Yeah me neither, will have a look tonight, we can't just throw/raise an ansible error right?
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/17a50efc-12a6-42d2-baf6-7139a634d54c%40googlegroups.com.