summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/handlers/roles/test_templating_in_handlers/tasks/main.yml
blob: 541741729f37dc2765f32f5f7f9272c481b4ac7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
- command: echo Hello World
  notify:
    - "{{ handler1 }}"
    - "{{ handler2 }}"
    - "{{ handler3 }}"
    - "{{ handler4 }}"

- meta: flush_handlers

- assert:
    that:
      - role_non_templated_name is defined
      - role_templated_name is defined
      - role_non_templated_listener is defined
      - role_templated_listener is undefined

- command: echo
  notify: "{{ handler_list }}"

- meta: flush_handlers

- assert:
    that:
      - role_handler5 is defined
      - role_handler6 is defined