summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/rule-complexity-pass.yml
blob: 27ec7f43b5b36dd03f259c9becb399c0ddc27729 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
- name: Test fixture complexity rule
  hosts: all
  tasks:
    - name: Task 1
      ansible.builtin.debug:
        msg: "This is task 1"

    - name: Task 2
      ansible.builtin.debug:
        msg: "This is task 2"

    - name: Task 3
      ansible.builtin.debug:
        msg: "This is task 3"

    - name: Task 4
      ansible.builtin.debug:
        msg: "This is task 4"

    - name: Task 5
      block:
        - name: Include under block level 1
          ansible.builtin.debug:
            msg: "This is nested block"
        - name: Block level 2
          block:
            - name: Include under block level 2
              ansible.builtin.debug:
                msg: "This is block 2"
            - name: Block level 3
              block:
                - name: INCLUDE under block level 3
                  ansible.builtin.debug:
                    msg: "This is block 3"