ansible/test/integration/targets/handlers/test_handlers_template_run_once.yml
2019-03-20 14:46:19 +01:00

12 lines
253 B
YAML

- 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) }}"