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 -- 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/CACVha7epawL12Qq58F0WDLBujvYA-qki1w%2BpT8HNNmSPOLYgww%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
