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