add tests

pull/83209/head
Martin Krizek 3 weeks ago
parent 6e6574ed73
commit c6fcf06baa

@ -0,0 +1,6 @@
- include_tasks: handlers_lockstep_83019-include-nested.yml
when: inventory_hostname == "A"
- name: handler2
debug:
msg: handler2

@ -0,0 +1,8 @@
- hosts: A,B
gather_facts: false
tasks:
- command: echo
notify: handler
handlers:
- name: handler
include_tasks: handlers_lockstep_83019-include.yml

@ -219,3 +219,6 @@ ansible-playbook 82241.yml -i inventory.handlers "$@" 2>&1 | tee out.txt
ansible-playbook handlers_lockstep_82307.yml -i inventory.handlers "$@" 2>&1 | tee out.txt
[ "$(grep out.txt -ce 'TASK \[handler2\]')" = "0" ]
ansible-playbook handlers_lockstep_83019.yml -i inventory.handlers "$@" 2>&1 | tee out.txt
[ "$(grep out.txt -ce 'TASK \[handler1\]')" = "0" ]

Loading…
Cancel
Save