summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/task_in_list-0.yml
blob: 7956dbb11fb047bb90f69b157531b6cd84b4a81e (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
---
- name: Fixture for task_in_list
  hosts: localhost
  tasks:
    - name: A
      ansible.builtin.debug:
        msg: "A"
    - name: B
      ansible.builtin.debug:
        msg: "C"
  pre_tasks:
    - name: C
      ansible.builtin.debug:
        msg: "C"
  post_tasks:
    - name: D
      block:
        - name: E
          ansible.builtin.debug:
            msg: "E"
      rescue:
        - name: F
          ansible.builtin.debug:
            msg: "F"
      always:
        - name: G
          ansible.builtin.debug:
            msg: "G"