1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/lib/ansible/playbook
James Cammarata 8218591fec Track notified handlers by object rather than simply their name
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
2016-06-20 09:30:20 -05:00
..
role centralize path list handling 2016-03-30 07:16:09 -07:00
__init__.py Save and restore the loader's basedir when loading playbooks 2016-05-23 15:04:44 -04:00
attribute.py Make the loop variable (item by default) settable per task 2016-04-19 01:42:40 -04:00
base.py Port urls.py to python3 and other byte vs text fixes (#16124) 2016-06-04 16:19:57 -07:00
become.py Fix misspelling and some cosmetic change 2016-03-10 03:18:09 +01:00
block.py Further tweaks to variable precedence to make it match our docs 2016-06-07 12:08:01 -05:00
conditional.py Another misspelling 2016-03-10 03:24:04 +01:00
handler.py Making the switch to v2 2015-05-03 21:47:26 -05:00
handler_task_include.py Fixes #15915: New HandlerTaskInclude Class which can run TaskIncludes inside Handlers 2016-05-22 15:45:55 +02:00
helpers.py Force an include to be a static task if no vars or loops are being used. (#16192) 2016-06-08 19:23:48 -04:00
included_file.py Make the loop variable (item by default) settable per task 2016-04-19 01:42:40 -04:00
loop_control.py Make the loop variable (item by default) settable per task 2016-04-19 01:42:40 -04:00
play.py Fix facts for the FieldAttribute list change in 30a38f9 2016-04-22 16:31:53 -07:00
play_context.py add executable if none exists when become 2016-06-15 11:24:16 -04:00
playbook_include.py Fixes #15745 playbook include: Conditional scoping 2016-05-11 15:58:36 -04:00
taggable.py Split up comma-separated tags properly 2016-01-12 08:18:06 -05:00
task.py Track notified handlers by object rather than simply their name 2016-06-20 09:30:20 -05:00
task_include.py Treat "static: yes/no" with higher priority than "task_includes_static" in ansible.cfg 2016-05-03 12:15:13 +02:00
vars.py Making the switch to v2 2015-05-03 21:47:26 -05:00
vars_file.py Making the switch to v2 2015-05-03 21:47:26 -05:00