Hi there.

My scenario is that I have a hundreds of locations on various different 
networks that I want to run some plays against.   In almost all 
circumstances I will have 2-3% of these sites that I cannot connect to due 
to network related issues.    I don't want to create exceptions/errors in 
AWX for these sites that just happen to be offline while we are running the 
play, they'll get picked up again next time.

The behaviour I would like is that when a host is deemed as unreachable, 
- any future tasks in the play against that host will not be run (no point 
as they will all fail as host unreachable).  
- the playbook will continue run all tasks against the other hosts that are 
reachable
- the playbook run will report success (return code = 0)

I was thinking of using the ignore_unreachable flag which seems to mostly 
do what I want, however based on the documentation and the comments in a 
issue <https://github.com/ansible/ansible/issues/50946> I just created it 
seems as though the ignore_unreachable flag is not aligned with my goals, 
the opposite in fact.

Is there another flag/option that might give me something closer to what I 
am looking for?  


-- 
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/a29334e2-f3a7-43ef-a3eb-81eec93a10a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to