you might want to play with serial and max fails. http://docs.ansible.com/playbooks_delegation.html#maximum-failure-percentage
On Mon, Jun 15, 2015 at 5:09 PM, nusenu <[email protected]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > 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 > -----BEGIN PGP SIGNATURE----- > > iQIcBAEBCgAGBQJVfz8JAAoJEFv7XvVCELh0EhwQAINC9lwVS/BytVogD0G4SqLV > NxcXac3zbQl9NvB2OoyJ6tIPL2quiESUx4UBRqnb3SnarjZ25HmMqPwMJtTylWHC > R5xMcNXjShdjD9KT1dgnN21YdhkMuN7/P/v51SVzMDAqyr+saZlxyMcdQZHaXW1H > 9v/tj6pFq1bvr4976CSikIuhrTdEAJ6KiC4wx2EF4cAknq10c6+5ei26KLblNgh7 > 9XkN/YNR9YMwRqFr2lvvXv5M/iroRsKgrDnvbdGu8BY6Ylu1bIxcs3QZHvcxoFa7 > CGSzws8S68OTYd+USzGlhjt+apAUDmVH7PUKXMFiwIrJmMdniAFVG/wQmKrFHfdi > 0CLBDGBasEduZxs2A9ZH3akjZatyR4CB4j35vMTW45ihtICrki2AxOTa6cX0pTCS > mre7B59dm1p4xa9NKWF+TybuSpot7kxcZbVhW1IW1QCJ7zUYrt3cj4e2rPqxH3LY > ioGz+9P4afbjEVwwF3i7lULcJVUwF7uxPcQ3rYceEzaqVxwua8ysvNJm3upQSImp > cZzsh1l9IwSDh6363gSjFc9v2Lisuj+apL+5jJbyyPVqmrkeM8zNsltkZTTw1V8U > 2JRJn2BqmIQqNedbOYzBMbBLX7Tls7gBhLajaHVAwyI8vHUMjFviwM6CrfLTEeaw > nik8mGLoBH/Smv1X/6cz > =vtwU > -----END PGP SIGNATURE----- > > -- > 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/557F3F09.4000706%40openmailbox.org. > For more options, visit https://groups.google.com/d/optout. -- Brian Coca -- 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/CAJ5XC8mm8Jqcfu81uykgsygRFeDbLabfo0mYh8WOz5kPdqAkYA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
