Monty Taylor | eb09398 | 2017-08-30 19:16:21 -0500 | [diff] [blame^] | 1 | - name: Run some commands to show that logging works on failed tasks too |
2 | hosts: node | ||||
3 | tasks: | ||||
4 | |||||
5 | - block: | ||||
6 | |||||
7 | - name: Run a shell task with an ansible python exception | ||||
8 | command: echo foo | ||||
9 | args: | ||||
10 | chdir: /somewhere/that/does/not/exist | ||||
11 | |||||
12 | - always: | ||||
13 | |||||
14 | - name: Loop with items on an ansible python exception | ||||
15 | command: "echo {{ item }}" | ||||
16 | with_items: | ||||
17 | - item1 | ||||
18 | - item2 | ||||
19 | - item3 | ||||
20 | args: | ||||
21 | chdir: /somewhere/that/does/not/exist |