summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/rule-key-order-fail.yml
blob: a83514a9e4abffd8bd655b59de5974fd164f4bbc (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
---
- name: Fixture
  hosts: localhost
  tasks:
    - no_log: true
      ansible.builtin.command: echo hello
      name: Task with no_log on top
      changed_when: false
    - when: true
      name: Task with when on top
      ansible.builtin.command: echo hello
      changed_when: false
    - delegate_to: localhost
      name: Delegate_to on top
      ansible.builtin.command: echo hello
      changed_when: false
    - loop:
        - 1
        - 2
      name: Loopy
      ansible.builtin.command: echo {{ item }}
      changed_when: false
    - become: true
      name: Become first
      ansible.builtin.command: echo hello
      changed_when: false
    - register: test
      ansible.builtin.command: echo hello
      name: Register first
      changed_when: false