ability to ignore inaccessible hosts and return successfully?

Hmm…

It seems what you might want to do in this case is modify your ec2 inventory script (if you are not using one, use one) such that it returns hosts that are running.

This way you would only talk to running hosts?

Alternatively if you are just talking about Jenkins, what you might want to do is wrap /usr/bin/ansible-playbook in a script that always returns success unless the string “all hosts have already failed” is found (or some other criteria).

Michael,

I agree on both points. Thanks (as always!) for talking some sense into me :slight_smile: I can tag the instances as worker nodes and use ansible_inventory. Your idea about wrapping the script to always return true also makes great sense.

~ Brice