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