Re: [ansible-project] how to abort execution upon a single fail on any host

2015-07-29 Thread Serge van Ginderachter
On 29 July 2015 at 14:49, Leon Xie qdxiaoli...@gmail.com wrote: max_fail_percentage: ​Perhaps ​any_errors_fatal: true might help? (btw Seems undocumented) -- You received this message because you are subscribed to the Google Groups Ansible Project group. To unsubscribe from this group and

Re: [ansible-project] how to abort execution upon a single fail on any host

2015-07-29 Thread Leon Xie
thanks a lot for your suggestion. I had a try by adding any_errors_fatal: true. however, it doesn't work. ++ - hosts: aa max_fail_percentage: 0 any_errors_fatal: true roles: - stop_server - hosts: allhosts

Re: [ansible-project] how to abort execution upon a single fail on any host

2015-07-29 Thread Leon Xie
Hi Serge, your suggestion about any_errors_fatal works for the hosts that in a single play. if there is another play and one of the hosts in the play is not in the hosts that marked as any_errors_fatal, the tasks in this play will also be executed. On Wednesday, July 29, 2015 at 8:54:59 PM

[ansible-project] how to abort execution upon a single fail on any host

2015-07-29 Thread Leon Xie
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: -