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
commit 7db5ce2c86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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