summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/blockincludes2.yml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/playbooks/blockincludes2.yml')
-rw-r--r--examples/playbooks/blockincludes2.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/playbooks/blockincludes2.yml b/examples/playbooks/blockincludes2.yml
new file mode 100644
index 0000000..f11667b
--- /dev/null
+++ b/examples/playbooks/blockincludes2.yml
@@ -0,0 +1,18 @@
+---
+- name: Fixture
+ hosts: webservers
+ vars:
+ varset: varset
+ tasks:
+ - name: I am a block
+ block:
+ - name: Include under block
+ ansible.builtin.include_tasks: tasks/nestedincludes.yml
+ # - block:
+ # - include_tasks: "{{ varnotset }}.yml"
+ rescue:
+ - name: Include under rescue
+ ansible.builtin.include_tasks: "{{ varset }}.yml"
+ always:
+ - name: Include under always
+ ansible.builtin.include_tasks: tasks/directory with spaces/main.yml