summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/tasks/empty_blocks.yml
blob: 2555e35ccac2d7f2bf6ecf45a5d426815bbb5cd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
- name: A named block task
  block:
    - name: an assertion
      ansible.builtin.assert:
        fail_msg: foo
  rescue: # null
  always: {}
- block:
    - name: Another assertion
      ansible.builtin.assert:
        fail_msg: bar
  rescue: {}
  always:
    - name: Yet another assertion
      ansible.builtin.assert:
        fail_msg: baz