Make sure we skip handlers from includes in compile_roles_handlers. Fixes #44848 (#44852)

pull/44701/head
Matt Martz 6 years ago committed by GitHub
parent 4b2495a54c
commit d5ed818e7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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:
for r in self.roles:
if r.from_include:
continue
block_list.extend(r.get_handler_blocks(play=self))
return block_list

Loading…
Cancel
Save