summaryrefslogtreecommitdiff
path: root/samples/test_include.yml
diff options
context:
space:
mode:
authorJames Cammarata <jimi@sngx.net>2015-05-03 21:47:26 -0500
committerJames Cammarata <jimi@sngx.net>2015-05-03 21:47:26 -0500
commitce3ef7f4c16e47d5a0b5600e1c56c177b7c93f0d (patch)
treeebb90eaba034dfb4ea8a3afe746a87f9b7dee66f /samples/test_include.yml
parent8cf4452d48e583cfd59f96e67cfd34a1c35226e7 (diff)
downloadansible-ce3ef7f4c16e47d5a0b5600e1c56c177b7c93f0d.tar.gz
Making the switch to v2
Diffstat (limited to 'samples/test_include.yml')
-rw-r--r--samples/test_include.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/samples/test_include.yml b/samples/test_include.yml
new file mode 100644
index 0000000000..60befd9911
--- /dev/null
+++ b/samples/test_include.yml
@@ -0,0 +1,25 @@
+- hosts: all
+ gather_facts: no
+ tasks:
+ - block:
+ - include: include.yml a=1
+ when: 1 == 1
+ notify: foo
+ - include: include.yml a={{item}}
+ with_items:
+ - foo
+ - bar
+ - bam
+ - include: "{{inventory_hostname}}_include.yml"
+ - fail:
+
+ rescue:
+ - include: include.yml a=rescue
+
+ always:
+ - include: include.yml a=always
+
+ #handlers:
+ #- name: foo
+ # include: include.yml a="this is a handler"
+