thanks for the reply Brian. Yes, it sounds like clear_host_errors i think will be too big of a hammer, I just want to ignore unreachable.
I'll have to figure something else out then, have a couple other scenarios in mind anyways, gonna also look at something like https://github.com/openstack/ara to have better logging/reporting on playbook runs so I can more easily find the failed hosts and rerun. ultimately just looking for a nice clean way to monitor and re-run failed executions, as well as easily distinguish things like connection failures vs actual failures where you know that running it again when the connection is up will work. I don't find AWX gives me a good enough view into this and am looking for a better overall strategy. On Wednesday, January 16, 2019 at 3:21:24 PM UTC-8, Brian Coca wrote: > > 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/842756e0-0741-4af3-8f74-cf75cb0a8464%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.