how to abort execution upon a single fail on any host

hi all,

I have the below playbooks:

​Perhaps ​any_errors_fatal: true might help?

(btw Seems undocumented)

thanks a lot for your suggestion.
I had a try by adding any_errors_fatal: true.
however, it doesn’t work.

my ansible version is as below:

$ ansible-playbook --version
ansible-playbook 1.9.1
configured module search path = None

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.