I've been trying to find a way of accomplishing this (what the subject
says). I thought on using blocks, for example:
- block:
- name: run task
command: <my-command>
register: command_result
failed_when: command_result.changed
rescue:
- name: stop task on all other nodes
command: <stop-command>
delegate_to: '{{ item }}'
with_items: '{{ groups.all }}'
Can you think of any other alternative?
Thanks!
--
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/c58025b2-63f1-457c-8d94-57d24ab6a890%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.