So, if I understand you correctly there is no feature to abort the entire playbook run incase of a single error encountered? The only solution that seems; is to have a when condition check on every tasks of a playbook.
The ansible documentation in this regards have been questioned in the past and seems confusing. Documentation says: The any_errors_fatal play option will mark all hosts as failed if any fails, causing an immediate abort: Now, if you look at my output any_errors_fatal does not mark all hosts as failed if the first one errors out; but checks explicitly for all hosts and all tasks. Sadly, There is no immediate abort!! -- 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-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/73d43e85-6f7b-4ce0-93b3-f700823068c8%40googlegroups.com.