summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/blockincludes.yml
blob: b8387a8bdd787afc782c588eb149ae66e8a17fae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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