diff options
Diffstat (limited to 'test/integration/targets/handlers/handler_notify_earlier_handler.yml')
-rw-r--r-- | test/integration/targets/handlers/handler_notify_earlier_handler.yml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/test/integration/targets/handlers/handler_notify_earlier_handler.yml b/test/integration/targets/handlers/handler_notify_earlier_handler.yml new file mode 100644 index 0000000000..cb16277619 --- /dev/null +++ b/test/integration/targets/handlers/handler_notify_earlier_handler.yml @@ -0,0 +1,33 @@ +- hosts: localhost + gather_facts: false + tasks: + - name: test implicit flush_handlers tasks pick up notifications done by handlers themselves + command: echo + notify: h2 + handlers: + - name: h1 + debug: + msg: h1_ran + + - name: h2 + debug: + msg: h2_ran + changed_when: true + notify: h1 + +- hosts: localhost + gather_facts: false + tasks: + - name: test implicit flush_handlers tasks pick up notifications done by handlers themselves + command: echo + notify: h3 + handlers: + - name: h3 + debug: + msg: h3_ran + changed_when: true + notify: h4 + + - name: h4 + debug: + msg: h4_ran |