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:
Matt Martz
2018-04-27 12:03:57 -05:00
committed by GitHub
parent 85b42a6f68
commit 7db5ce2c86
5 changed files with 16 additions and 2 deletions

View File

@@ -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

View File

@@ -0,0 +1,4 @@
- name: delegated assert handler
assert:
that:
- ansible_delegated_vars is defined

View File

@@ -0,0 +1,3 @@
- command: "true"
notify:
- delegated assert handler