mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
8218591fec
Due to the fact that roles may be instantiated with different sets of params (multiple inclusions of the same role or via role dependencies), simply tracking notified handlers by name does not work. This patch changes the way we track handler notifications by using the handler object itself instead of just the name, allowing for multiple internal instances. Normally this would be bad, but we also modify the way we search for handlers by first looking at the notifying tasks dependency chain (ensuring that roles find their own handlers first) and then at the main list of handlers, using the first match it finds. This patch also modifies the way we setup the internal list of handlers, which should allow us to correctly identify if a notified handler exists more easily. Fixes #15084 |
||
---|---|---|
.. | ||
role | ||
__init__.py | ||
attribute.py | ||
base.py | ||
become.py | ||
block.py | ||
conditional.py | ||
handler.py | ||
handler_task_include.py | ||
helpers.py | ||
included_file.py | ||
loop_control.py | ||
play.py | ||
play_context.py | ||
playbook_include.py | ||
taggable.py | ||
task.py | ||
task_include.py | ||
vars.py | ||
vars_file.py |