mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-27 04:41:26 -07:00
restore play_hosts variables to not show removed
Also adds ansible_play_hosts_all with original list of hosts the play targeted
This commit is contained in:
parent
0b77942bbc
commit
5dd195b52f
4 changed files with 10 additions and 6 deletions
|
@ -365,6 +365,7 @@ class StrategyBase:
|
|||
self._tqm.send_callback('v2_runner_on_failed', task_result, ignore_errors=original_task.ignore_errors)
|
||||
elif task_result.is_unreachable():
|
||||
self._tqm._unreachable_hosts[original_host.name] = True
|
||||
iterator._play._removed_hosts.append(original_host.name)
|
||||
self._tqm._stats.increment('dark', original_host.name)
|
||||
self._tqm.send_callback('v2_runner_on_unreachable', task_result)
|
||||
elif task_result.is_skipped():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue