mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
This commit is contained in:
2
changelogs/fragments/include-double-handler.yaml
Normal file
2
changelogs/fragments/include-double-handler.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- includes - ensure we do not double register handlers from includes to prevent exception (https://github.com/ansible/ansible/issues/44848)
|
||||||
@@ -239,6 +239,8 @@ class Play(Base, Taggable, Become):
|
|||||||
|
|
||||||
if len(self.roles) > 0:
|
if len(self.roles) > 0:
|
||||||
for r in self.roles:
|
for r in self.roles:
|
||||||
|
if r.from_include:
|
||||||
|
continue
|
||||||
block_list.extend(r.get_handler_blocks(play=self))
|
block_list.extend(r.get_handler_blocks(play=self))
|
||||||
|
|
||||||
return block_list
|
return block_list
|
||||||
|
|||||||
Reference in New Issue
Block a user