So what you are asking would be the 'default' way ansible operates, it
removes 'unreachable' hosts from the rest of the play and then
continues with the rest of the hosts.
> - any future tasks in the play against that host will not be run (no point as they will all fail as host unreachable).
this is the default
> - the playbook will continue run all tasks against the other hosts that are reachable
also the default
> - the playbook run will report success (return code = 0)
this is not the default, but you can have a `meta:
clear_host_errors` as your last task .. but this might be too big of a
hammer.
There are some cases in which the above is not true, for example,
using serial, if all hosts in a 'serial batch' fail (unreachable
counts) then the whole play fails, you also have max_fail_percentage
to manage how many failures you tolerate.
----------
Brian Coca