diff options
author | James Cammarata <jimi@sngx.net> | 2016-07-06 14:40:11 -0500 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2016-07-06 14:57:38 -0500 |
commit | 930d0905074ccf6537d0ecf14259a7da6a9559fb (patch) | |
tree | bc69c4016937495d650db8b2db8ee7eb53b8dd9f /lib/ansible/playbook/play.py | |
parent | 729686a434094d23ecd3fe81c0443059db073817 (diff) | |
download | ansible-930d0905074ccf6537d0ecf14259a7da6a9559fb.tar.gz |
Fix the way handlers are compiled and found/notified
* Instead of rebuilding the handler list all over the place, we now
compile the handlers at the point the play is post-validated so that
the view of the play in the PlayIterator contains the definitive list
* Assign the dep_chain to the handlers as they're compiling, just as we
do for regular tasks
* Clean up the logic used to find a given handler, which is greatly
simplified by the above changes
Fixes #15418
Diffstat (limited to 'lib/ansible/playbook/play.py')
-rw-r--r-- | lib/ansible/playbook/play.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py index a85ab7fe64..2031465eef 100644 --- a/lib/ansible/playbook/play.py +++ b/lib/ansible/playbook/play.py @@ -265,7 +265,7 @@ class Play(Base, Taggable, Become): if len(self.roles) > 0: for r in self.roles: - block_list.extend(r.get_handler_blocks()) + block_list.extend(r.get_handler_blocks(play=self)) return block_list |