failed_when directive not working when task runs on multiple hosts
30 views
Skip to first unread message
Ard-Jan Barnas
unread,
Aug 3, 2015, 12:58:34 PM8/3/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
Hello,
I am trying to figure out how to stop further execution of a playbook if only one of the hosts fails. My inventory contains two hosts assigned to the same group, so the playbook runs on both hosts. Considering I am standing up a failover cluster, I want the playbook to stop, and thus not continue on the second, non-failed host.
Here is an excerpt of one of the tasks in my playbook: