mirror of https://github.com/ansible/ansible.git
Do not allow handlers from dynamic includes to be notified (#78399)
* Do not allow handlers from dynamic includes to be notifiedpull/78419/head
parent
f6d2b18322
commit
ce6c9befb8
@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- Do not allow handlers from dynamic includes to be notified (https://github.com/ansible/ansible/pull/78399)
|
@ -0,0 +1,3 @@
|
|||||||
|
- name: handler_from_include
|
||||||
|
debug:
|
||||||
|
msg: I was included
|
@ -0,0 +1,16 @@
|
|||||||
|
- name: This worked unintentionally, make sure it does not anymore
|
||||||
|
hosts: localhost
|
||||||
|
gather_facts: false
|
||||||
|
tasks:
|
||||||
|
- command: echo
|
||||||
|
notify:
|
||||||
|
- include_handler
|
||||||
|
|
||||||
|
- meta: flush_handlers
|
||||||
|
|
||||||
|
- command: echo
|
||||||
|
notify:
|
||||||
|
- handler_from_include
|
||||||
|
handlers:
|
||||||
|
- name: include_handler
|
||||||
|
include_tasks: test_notify_included-handlers.yml
|
Loading…
Reference in New Issue