blob: 272431a9e9e8ac6e976acccfe4fdad3f709b4af6 [file] [log] [blame]
Monty Tayloreb093982017-08-30 19:16:21 -05001- 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