ansible/test/integration/targets/blocks/inherit_notify.yml
Brian Coca ce1de28061
Fix notify on import_tasks (#73572)
* Fix notify on import_tasks

  also able to apply to blocks now.
2021-03-03 16:11:09 -05:00

19 lines
370 B
YAML

- 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'"