summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/blockincludes.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 16:04:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 16:04:56 +0000
commitd964cec5e6aa807b75c7a4e7cdc5f11e54b2eda2 (patch)
tree794bc3738a00b5e599f06d1f2f6d79048d87ff8e /examples/playbooks/blockincludes.yml
parentInitial commit. (diff)
downloadansible-lint-d964cec5e6aa807b75c7a4e7cdc5f11e54b2eda2.tar.xz
ansible-lint-d964cec5e6aa807b75c7a4e7cdc5f11e54b2eda2.zip
Adding upstream version 6.13.1.upstream/6.13.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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