summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/blockincludes.yml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/playbooks/blockincludes.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/playbooks/blockincludes.yml b/examples/playbooks/blockincludes.yml
new file mode 100644
index 0000000..b8387a8
--- /dev/null
+++ b/examples/playbooks/blockincludes.yml
@@ -0,0 +1,21 @@
+---
+- name: Fixture
+ hosts: localhost
+ vars:
+ varset: varset
+ tasks:
+ - name: Block level 1
+ block:
+ - name: Include under block level 1 # noqa: fqcn
+ include_tasks: tasks/nestedincludes.yml
+ - name: Block level 2
+ block:
+ # - include_tasks: "{{ varnotset }}.yml"
+ - name: Block level 3
+ block:
+ - name: Include under block level 3 # noqa: deprecated-module
+ ansible.builtin.include: "{{ varset }}.yml"
+ - name: Block level 4
+ block:
+ - name: INCLUDE under block level 4
+ ansible.builtin.include_tasks: tasks/directory with spaces/main.yml