summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/transform-key-order-block.transformed.yml
blob: 0f1ca120ed5f5a5466e503d371d599a4aa2f77a3 (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
      when: true # <-- name key should be the second one
      block:
        - name: Display a message
          ansible.builtin.debug:
            msg: Hello world!