ansible/test/integration/targets/handlers/test_handlers_template_run_once.yml

13 lines
253 B
YAML
Raw Normal View History

- hosts: A,B
gather_facts: no
tasks:
- debug:
changed_when: true
notify:
- handler
handlers:
- name: handler
debug:
msg: "handler {{ inventory_hostname }}"
run_once: "{{ testvar | default(False) }}"