mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -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
|
@ -503,6 +503,7 @@ class PlayIterator:
|
|||
s = self._set_failed_state(s)
|
||||
display.debug("^ failed state is now: %s" % s)
|
||||
self._host_states[host.name] = s
|
||||
self._play._removed_hosts.append(host.name)
|
||||
|
||||
def get_failed_hosts(self):
|
||||
return dict((host, True) for (host, state) in iteritems(self._host_states) if self._check_failed_state(state))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue