summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/handlers/test_handlers_template_run_once.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/handlers/test_handlers_template_run_once.yml')
-rw-r--r--test/integration/targets/handlers/test_handlers_template_run_once.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/integration/targets/handlers/test_handlers_template_run_once.yml b/test/integration/targets/handlers/test_handlers_template_run_once.yml
new file mode 100644
index 0000000..6edc32e
--- /dev/null
+++ b/test/integration/targets/handlers/test_handlers_template_run_once.yml
@@ -0,0 +1,12 @@
+- 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) }}"