Debian Codegraph @

test/integration/targets/callback_default/test_dryrun.yml

raw
1 ---
2 - name: A common play
3 hosts: testhost
4 gather_facts: no
5 tasks:
6 - debug:
7 msg: 'ansible_check_mode: {{ansible_check_mode}}'
8
9 - name: Command
10 command: ls -l
11
12 - name: "Command with check_mode: false"
13 command: ls -l
14 check_mode: false
15
16 - name: "Command with check_mode: true"
17 command: ls -l
18 check_mode: true
19
20
21 - name: "Play with check_mode: true (runs always in check_mode)"
22 hosts: testhost
23 gather_facts: no
24 check_mode: true
25 tasks:
26 - debug:
27 msg: 'ansible_check_mode: {{ansible_check_mode}}'
28
29 - name: Command
30 command: ls -l
31
32 - name: "Command with check_mode: false"
33 command: ls -l
34 check_mode: false
35
36 - name: "Command with check_mode: true"
37 command: ls -l
38 check_mode: true
39
40
41 - name: "Play with check_mode: false (runs always in wet mode)"
42 hosts: testhost
43 gather_facts: no
44 check_mode: false
45 tasks:
46 - debug:
47 msg: 'ansible_check_mode: {{ansible_check_mode}}'
48
49 - name: Command
50 command: ls -l
51
52 - name: "Command with check_mode: false"
53 command: ls -l
54 check_mode: false
55
56 - name: "Command with check_mode: true"
57 command: ls -l
58 check_mode: true
59
60
61 - name: "Play with a block with check_mode: true"
62 hosts: testhost
63 gather_facts: no
64 tasks:
65 - block:
66 - name: Command
67 command: ls -l
68
69 - name: "Command with check_mode: false"
70 command: ls -l
71 check_mode: false
72
73 - name: "Command with check_mode: true"
74 command: ls -l
75 check_mode: true
76 check_mode: true
77
78 - name: "Play with a block with check_mode: false"
79 hosts: testhost
80 gather_facts: no
81 tasks:
82 - block:
83 - name: Command
84 command: ls -l
85
86 - name: "Command with check_mode: false"
87 command: ls -l
88 check_mode: false
89
90 - name: "Command with check_mode: true"
91 command: ls -l
92 check_mode: true
93 check_mode: false