|
3 | 3 | executable: "{{ test_executable | default('podman') }}" |
4 | 4 | name: "idempotency" |
5 | 5 | state: absent |
| 6 | + podman_socket: "{{ podman_socket | default(omit) }}" |
6 | 7 |
|
7 | 8 | - name: Run container with boolean key-value type - 1 |
8 | 9 | containers.podman.podman_container: |
|
11 | 12 | image: "{{ idem_image }}" |
12 | 13 | state: present |
13 | 14 | command: 1h |
| 15 | + podman_socket: "{{ podman_socket | default(omit) }}" |
14 | 16 | register: resultx1 |
15 | 17 |
|
16 | 18 | - name: Run container with boolean key-value type - 2 |
|
20 | 22 | image: "{{ idem_image }}" |
21 | 23 | state: present |
22 | 24 | command: 1h |
| 25 | + podman_socket: "{{ podman_socket | default(omit) }}" |
23 | 26 | register: resultx2 |
24 | 27 |
|
25 | 28 | - name: Run container with boolean key-value type - 3 |
|
30 | 33 | state: present |
31 | 34 | command: 1h |
32 | 35 | tls_verify: false |
| 36 | + podman_socket: "{{ podman_socket | default(omit) }}" |
33 | 37 | register: resultx3 |
34 | 38 |
|
35 | 39 | - name: Run container with boolean key-value type - 4 |
|
40 | 44 | state: present |
41 | 45 | command: 1h |
42 | 46 | tls_verify: false |
| 47 | + podman_socket: "{{ podman_socket | default(omit) }}" |
43 | 48 | register: resultx4 |
44 | 49 |
|
45 | 50 | - name: Run container with boolean key-value type - 5 |
|
50 | 55 | state: present |
51 | 56 | command: 1h |
52 | 57 | tls_verify: true |
| 58 | + podman_socket: "{{ podman_socket | default(omit) }}" |
53 | 59 | register: resultx5 |
54 | 60 |
|
55 | 61 | - name: Run container with boolean key-value type - 6 |
|
60 | 66 | state: present |
61 | 67 | command: 1h |
62 | 68 | tls_verify: true |
| 69 | + podman_socket: "{{ podman_socket | default(omit) }}" |
63 | 70 | register: resultx6 |
64 | 71 |
|
65 | 72 | - name: Run container with boolean key-value type - 7 |
|
70 | 77 | state: present |
71 | 78 | command: 1h |
72 | 79 | tls_verify: false |
| 80 | + podman_socket: "{{ podman_socket | default(omit) }}" |
73 | 81 | register: resultx7 |
74 | 82 |
|
75 | 83 | - name: Run container with boolean key-value type - 8 |
|
80 | 88 | state: present |
81 | 89 | command: 1h |
82 | 90 | # tls_verify: false |
| 91 | + podman_socket: "{{ podman_socket | default(omit) }}" |
83 | 92 | register: resultx8 |
84 | 93 |
|
85 | 94 | - name: Run container with boolean key-value type - 9 |
|
90 | 99 | state: present |
91 | 100 | command: 1h |
92 | 101 | tls_verify: true |
| 102 | + podman_socket: "{{ podman_socket | default(omit) }}" |
93 | 103 | register: resultx9 |
94 | 104 |
|
95 | 105 | - name: Run container with boolean key-value type - 10 |
|
100 | 110 | state: present |
101 | 111 | command: 1h |
102 | 112 | # tls_verify: true |
| 113 | + podman_socket: "{{ podman_socket | default(omit) }}" |
103 | 114 | register: resultx10 |
104 | 115 |
|
105 | 116 | - name: Assert checks |
|
121 | 132 | executable: "{{ test_executable | default('podman') }}" |
122 | 133 | name: "idempotency" |
123 | 134 | state: absent |
| 135 | + podman_socket: "{{ podman_socket | default(omit) }}" |
124 | 136 |
|
125 | 137 | - name: Run container with list type - 1 |
126 | 138 | containers.podman.podman_container: |
|
133 | 145 | - HOME |
134 | 146 | - TERM |
135 | 147 | - USER |
| 148 | + podman_socket: "{{ podman_socket | default(omit) }}" |
136 | 149 | register: resultq1 |
137 | 150 |
|
138 | 151 | - name: Run container with list type - 2 |
|
146 | 159 | - HOME |
147 | 160 | - TERM |
148 | 161 | - USER |
| 162 | + podman_socket: "{{ podman_socket | default(omit) }}" |
149 | 163 | register: resultq2 |
150 | 164 |
|
151 | 165 | - name: Run container with list type - 3 |
|
157 | 171 | command: 1h |
158 | 172 | unsetenv: |
159 | 173 | - HOME |
| 174 | + podman_socket: "{{ podman_socket | default(omit) }}" |
160 | 175 | register: resultq3 |
161 | 176 |
|
162 | 177 | - name: Run container with list type - 4 |
|
168 | 183 | command: 1h |
169 | 184 | unsetenv: |
170 | 185 | - HOME |
| 186 | + podman_socket: "{{ podman_socket | default(omit) }}" |
171 | 187 | register: resultq4 |
172 | 188 |
|
173 | 189 | - name: Run container with list type - 5 |
|
177 | 193 | image: "{{ idem_image }}" |
178 | 194 | state: present |
179 | 195 | command: 1h |
| 196 | + podman_socket: "{{ podman_socket | default(omit) }}" |
180 | 197 | register: resultq5 |
181 | 198 |
|
182 | 199 | - name: Run container with list type - 6 |
|
186 | 203 | image: "{{ idem_image }}" |
187 | 204 | state: present |
188 | 205 | command: 1h |
| 206 | + podman_socket: "{{ podman_socket | default(omit) }}" |
189 | 207 | register: resultq6 |
190 | 208 |
|
191 | 209 | - name: Run container with list type - 7 |
|
197 | 215 | command: 1h |
198 | 216 | unsetenv: |
199 | 217 | - USER |
| 218 | + podman_socket: "{{ podman_socket | default(omit) }}" |
200 | 219 | register: resultq7 |
201 | 220 |
|
202 | 221 | - name: Run container with list type - 8 |
|
208 | 227 | command: 1h |
209 | 228 | unsetenv: |
210 | 229 | - USER |
| 230 | + podman_socket: "{{ podman_socket | default(omit) }}" |
211 | 231 | register: resultq8 |
212 | 232 |
|
213 | 233 | - name: Run container with list type - 9 |
|
217 | 237 | image: "{{ idem_image }}" |
218 | 238 | state: present |
219 | 239 | command: 1h |
| 240 | + podman_socket: "{{ podman_socket | default(omit) }}" |
220 | 241 | register: resultq9 |
221 | 242 |
|
222 | 243 | - name: Assert checks |
|
237 | 258 | executable: "{{ test_executable | default('podman') }}" |
238 | 259 | name: "idempotency" |
239 | 260 | state: absent |
| 261 | + podman_socket: "{{ podman_socket | default(omit) }}" |
240 | 262 |
|
241 | 263 | - name: Run container with boolean trigger type - 1 |
242 | 264 | containers.podman.podman_container: |
|
245 | 267 | image: "{{ idem_image }}" |
246 | 268 | state: present |
247 | 269 | command: 1h |
| 270 | + podman_socket: "{{ podman_socket | default(omit) }}" |
248 | 271 | register: resulty1 |
249 | 272 |
|
250 | 273 | - name: Run container with boolean trigger type - 2 |
|
254 | 277 | image: "{{ idem_image }}" |
255 | 278 | state: present |
256 | 279 | command: 1h |
| 280 | + podman_socket: "{{ podman_socket | default(omit) }}" |
257 | 281 | register: resulty2 |
258 | 282 |
|
259 | 283 | - name: Run container with boolean trigger type - 3 |
|
264 | 288 | state: present |
265 | 289 | command: 1h |
266 | 290 | no_healthcheck: false |
| 291 | + podman_socket: "{{ podman_socket | default(omit) }}" |
267 | 292 | register: resulty3 |
268 | 293 |
|
269 | 294 | - name: Run container with boolean trigger type - 4 |
|
274 | 299 | state: present |
275 | 300 | command: 1h |
276 | 301 | no_healthcheck: false |
| 302 | + podman_socket: "{{ podman_socket | default(omit) }}" |
277 | 303 | register: resulty4 |
278 | 304 |
|
279 | 305 | - name: Run container with boolean trigger type - 5 |
|
284 | 310 | state: present |
285 | 311 | command: 1h |
286 | 312 | no_healthcheck: true |
| 313 | + podman_socket: "{{ podman_socket | default(omit) }}" |
287 | 314 | register: resulty5 |
288 | 315 |
|
289 | 316 | - name: Run container with boolean trigger type - 6 |
|
294 | 321 | state: present |
295 | 322 | command: 1h |
296 | 323 | no_healthcheck: true |
| 324 | + podman_socket: "{{ podman_socket | default(omit) }}" |
297 | 325 | register: resulty6 |
298 | 326 |
|
299 | 327 | - name: Run container with boolean trigger type - 7 |
|
304 | 332 | state: present |
305 | 333 | command: 1h |
306 | 334 | no_healthcheck: false |
| 335 | + podman_socket: "{{ podman_socket | default(omit) }}" |
307 | 336 | register: resulty7 |
308 | 337 |
|
309 | 338 | - name: Run container with boolean trigger type - 8 |
|
314 | 343 | state: present |
315 | 344 | command: 1h |
316 | 345 | # no_healthcheck: false |
| 346 | + podman_socket: "{{ podman_socket | default(omit) }}" |
317 | 347 | register: resulty8 |
318 | 348 |
|
319 | 349 | - name: Run container with boolean trigger type - 9 |
|
324 | 354 | state: present |
325 | 355 | command: 1h |
326 | 356 | no_healthcheck: true |
| 357 | + podman_socket: "{{ podman_socket | default(omit) }}" |
327 | 358 | register: resulty9 |
328 | 359 |
|
329 | 360 | - name: Run container with boolean trigger type - 10 |
|
334 | 365 | state: present |
335 | 366 | command: 1h |
336 | 367 | # no_healthcheck: true |
| 368 | + podman_socket: "{{ podman_socket | default(omit) }}" |
337 | 369 | register: resulty10 |
338 | 370 |
|
339 | 371 | - name: Assert checks |
340 | 372 | assert: |
341 | 373 | that: |
342 | 374 | - resulty1.changed == true |
343 | 375 | - resulty2.changed == false |
344 | | - - resulty3.changed == false |
| 376 | + - resulty3.changed == false or podman_socket is defined |
345 | 377 | - resulty4.changed == false |
346 | 378 | - resulty5.changed == true |
347 | 379 | - resulty6.changed == false |
348 | 380 | - resulty7.changed == true |
349 | | - - resulty8.changed == false |
| 381 | + - resulty8.changed == false or podman_socket is defined |
350 | 382 | - resulty9.changed == true |
351 | 383 | - resulty10.changed == true |
352 | 384 |
|
|
356 | 388 | executable: "{{ test_executable | default('podman') }}" |
357 | 389 | name: "idempotency" |
358 | 390 | state: absent |
| 391 | + podman_socket: "{{ podman_socket | default(omit) }}" |
359 | 392 |
|
360 | 393 | - name: Run container with dict type - 1 |
361 | 394 | containers.podman.podman_container: |
|
368 | 401 | max_size: 10m |
369 | 402 | tag: test |
370 | 403 | path: /var/log |
| 404 | + podman_socket: "{{ podman_socket | default(omit) }}" |
371 | 405 | register: resultv1 |
372 | 406 |
|
373 | 407 | - name: Run container with dict type - 2 |
|
381 | 415 | max_size: 10m |
382 | 416 | tag: test |
383 | 417 | path: /var/log |
| 418 | + podman_socket: "{{ podman_socket | default(omit) }}" |
384 | 419 | register: resultv2 |
385 | 420 |
|
386 | 421 | - name: Run container with dict type - 3 |
|
392 | 427 | command: 1h |
393 | 428 | log_opt: |
394 | 429 | max_size: 10m |
| 430 | + podman_socket: "{{ podman_socket | default(omit) }}" |
395 | 431 | register: resultv3 |
396 | 432 |
|
397 | 433 | - name: Run container with dict type - 4 |
|
403 | 439 | command: 1h |
404 | 440 | log_opt: |
405 | 441 | max_size: 10m |
| 442 | + podman_socket: "{{ podman_socket | default(omit) }}" |
406 | 443 | register: resultv4 |
407 | 444 |
|
408 | 445 | - name: Run container with dict type - 5 |
|
412 | 449 | image: "{{ idem_image }}" |
413 | 450 | state: present |
414 | 451 | command: 1h |
| 452 | + podman_socket: "{{ podman_socket | default(omit) }}" |
415 | 453 | register: resultv5 |
416 | 454 |
|
417 | 455 | - name: Run container with dict type - 6 |
|
421 | 459 | image: "{{ idem_image }}" |
422 | 460 | state: present |
423 | 461 | command: 1h |
| 462 | + podman_socket: "{{ podman_socket | default(omit) }}" |
424 | 463 | register: resultv6 |
425 | 464 |
|
426 | 465 | - name: Run container with dict type - 7 |
|
432 | 471 | command: 1h |
433 | 472 | log_opt: |
434 | 473 | tag: test |
| 474 | + podman_socket: "{{ podman_socket | default(omit) }}" |
435 | 475 | register: resultv7 |
436 | 476 |
|
437 | 477 | - name: Run container with dict type - 8 |
|
443 | 483 | command: 1h |
444 | 484 | log_opt: |
445 | 485 | tag: test |
| 486 | + podman_socket: "{{ podman_socket | default(omit) }}" |
446 | 487 | register: resultv8 |
447 | 488 |
|
448 | 489 | - name: Run container with dict type - 9 |
|
452 | 493 | image: "{{ idem_image }}" |
453 | 494 | state: present |
454 | 495 | command: 1h |
| 496 | + podman_socket: "{{ podman_socket | default(omit) }}" |
455 | 497 | register: resultv9 |
456 | 498 |
|
457 | 499 | - name: Assert checks |
|
0 commit comments