mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
Fix unreachable host detection and have plays continue after unreachable failures
Fixes #12284
This commit is contained in:
parent
25c97fff69
commit
be7bd392cb
6 changed files with 17 additions and 11 deletions
|
@ -155,7 +155,7 @@ class StrategyModule(StrategyBase):
|
|||
|
||||
try:
|
||||
self._display.debug("getting the remaining hosts for this loop")
|
||||
hosts_left = self._inventory.get_hosts(iterator._play.hosts)
|
||||
hosts_left = [host for host in self._inventory.get_hosts(iterator._play.hosts) if host.name not in self._tqm._unreachable_hosts]
|
||||
self._display.debug("done getting the remaining hosts for this loop")
|
||||
|
||||
# queue up this task for each host in the inventory
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue