how to abort playbook run on first failed host during 'gathering facts' phase?

Hi,

my playbook/role requires that it is run against all given hosts.
Proceeding in case of a single failed host would generate incomplete
configs and must be prevented.

Is there a way to tell ansible-playbook to terminate/abort immediately
as soon as one host fails the 'gathering facts' phase?
(something better than manual ctrl-c?)

thanks,
nusenu

you might want to play with serial and max fails.
http://docs.ansible.com/playbooks_delegation.html#maximum-failure-percentage

Brian Coca:

you might want to play with serial and max fails.
http://docs.ansible.com/playbooks_delegation.html

thank you, I'll go with

max_fail_percentage: 1
serial: 1

to abort on the first failed host.