summaryrefslogtreecommitdiff
path: root/samples/test_blocks_of_blocks.yml
blob: 5be603cc96a1194f44c7ebd243a3e08b05ec1c5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- hosts: localhost
  gather_facts: no
  tasks:
  - block:
    - block:
      - block:
        - block:
          - debug: msg="are we there yet {{foo}}?"
        always:
        - debug: msg="a random always block"
      - fail:
      rescue:
      - debug: msg="rescuing from the fail"
      when: not skip_me|default(False)
    - debug: msg="i am the last task"
    vars:
      foo: bar