mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -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
|
@ -172,7 +172,7 @@ class Role(Base, Become, Conditional, Taggable):
|
|||
|
||||
handler_data = self._load_role_yaml('handlers')
|
||||
if handler_data:
|
||||
self._handler_blocks = load_list_of_blocks(handler_data, play=None, role=self, loader=self._loader)
|
||||
self._handler_blocks = load_list_of_blocks(handler_data, play=None, role=self, use_handlers=True, loader=self._loader)
|
||||
|
||||
# vars and default vars are regular dictionaries
|
||||
self._role_vars = self._load_role_yaml('vars')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue