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: - name: configureQuorum script: configureQuorum.ps1 register: result ignore_errors: true failed_when: ( result.rc != 0 ) The failed_when directive doesn't do the trick. Any ideas? -- 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/2d5bbcba-842e-496b-9262-451f64da057d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
