diff options
Diffstat (limited to 'test/integration/targets/blocks/inherit_notify.yml')
-rw-r--r-- | test/integration/targets/blocks/inherit_notify.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/integration/targets/blocks/inherit_notify.yml b/test/integration/targets/blocks/inherit_notify.yml new file mode 100644 index 0000000..d8e8742 --- /dev/null +++ b/test/integration/targets/blocks/inherit_notify.yml @@ -0,0 +1,19 @@ +- hosts: localhost + gather_facts: false + tasks: + - name: test notify inheritance in block + notify: hello + block: + - debug: msg='trigger it' + changed_when: true + + handlers: + - name: hello + set_fact: hello=world + + post_tasks: + - name: ensure handler ran + assert: + that: + - hello is defined + - "hello == 'world'" |