mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-22 22:11:44 -07:00
fixes issue 11286 where role handlers are not run
This commit is contained in:
parent
6e61881e80
commit
be81b650e8
4 changed files with 21 additions and 1 deletions
|
@ -100,6 +100,9 @@ class PlayIterator:
|
|||
for host in inventory.get_hosts(self._play.hosts):
|
||||
self._host_states[host.name] = HostState(blocks=self._blocks)
|
||||
|
||||
# Extend the play handlers list to include the handlers defined in roles
|
||||
self._play.handlers.extend(play.compile_roles_handlers())
|
||||
|
||||
def get_host_state(self, host):
|
||||
try:
|
||||
return self._host_states[host.name].copy()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue