summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/transform-key-order-block.yml
blob: 12a171e9e8fcf9ec86e9a584ae241aa6885ecc3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
- name: Testing multiple plays in a playbook
  hosts: localhost
  tasks:
    - name: First block
      when: true
      block:
        - name: Display a message
          ansible.builtin.debug:
            msg: Hello world!

- name: A second play
  hosts: localhost
  tasks:
    - name: Second block
      block:
        - name: Display a message
          ansible.builtin.debug:
            msg: Hello world!
      when: true # <-- name key should be the second one