summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/rule-complexity-fail.yml
blob: 0eb68bf2ed9cd58a83e985bbc12eb434641a1347 (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
36
37
38
39
40
41
42
---
# no of tasks required are 5 and since there are 6 tasks it will give an error
- 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
      ansible.builtin.debug:
        msg: "This is task 5"

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

    - name: Block Task 7
      block:
        - name: 2nd level block
          block:
            - name: 3rd level block
              block:
                - name: 4th level block
                  block:
                    - name: 5th level block
                      block:
                        - name: Nested Task 1
                          ansible.builtin.debug:
                            msg: "This is nested task 1"