mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-03 23:14:02 -07:00
Ensure handlers have proper parent (#39426)
* Ensure role handlers are parented correctly. Fixes #36518 * Add delegate_to test for include_role handlers
This commit is contained in:
parent
85b42a6f68
commit
7db5ce2c86
5 changed files with 16 additions and 2 deletions
|
@ -136,3 +136,8 @@
|
|||
- name: Include role inside always
|
||||
import_role:
|
||||
name: role3
|
||||
|
||||
- name: Test delegate_to handler is delegated
|
||||
import_role:
|
||||
name: delegated_handler
|
||||
delegate_to: localhost
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
- name: delegated assert handler
|
||||
assert:
|
||||
that:
|
||||
- ansible_delegated_vars is defined
|
|
@ -0,0 +1,3 @@
|
|||
- command: "true"
|
||||
notify:
|
||||
- delegated assert handler
|
Loading…
Add table
Add a link
Reference in a new issue