mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-10 18:34:03 -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
|
@ -55,7 +55,7 @@ class StrategyModule(StrategyBase):
|
|||
work_to_do = True
|
||||
while work_to_do and not self._tqm._terminated:
|
||||
|
||||
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]
|
||||
if len(hosts_left) == 0:
|
||||
self._tqm.send_callback('v2_playbook_on_no_hosts_remaining')
|
||||
result = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue