Debian Codegraph @

test/integration/targets/handlers/test_handlers_including_task.yml

raw
1 ---
2 - name: Verify handler can include other tasks (#47287)
3 hosts: testhost
4 tasks:
5 - name: include a task from the tasks section
6 include_tasks: handlers.yml
7
8 - name: notify a handler
9 debug:
10 msg: notifying handler
11 changed_when: yes
12 notify:
13 - include a task from the handlers section
14 - include a task in a loop from the handlers section
15
16 handlers:
17 - name: include a task from the handlers section
18 include_tasks: handlers.yml
19
20 - name: include a task in a loop from the handlers section
21 include_tasks: "{{ item }}"
22 with_first_found:
23 - handlers.yml