hi all,

I have the below playbooks:


+++++++++++++++++++++++++++++++++++++++++++++++++++++++
- hosts: aa
  max_fail_percentage: 0
  roles:
    - stop_server

- hosts: allhosts
  max_fail_percentage: 0
  roles:
    - backup_data

- hosts: localhost
  max_fail_percentage: 0
  roles:
    - prepare_data

+++++++++++++++++++++++++++++++++++++++++++++++++++++++
what I get now is that even if any task in stop_server role fail, the task 
in backup_data for allhosts still runs.

what I want is that if any failure occurs in any host, the other tasks 
won't be run for the remaining hosts.
is there a way to achieve this?


-- 
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/ea2201f5-477b-4f7b-8b9c-658a6f17dd46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to