blob: 3e7b27a7f899198a7c2ff460f708e95d7eafd0a5 [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:
David Shrewsbury13d6e582017-08-31 13:03:12 -040010 chdir: /failure-shelltask/somewhere/that/does/not/exist
Monty Tayloreb093982017-08-30 19:16:21 -050011
David Shrewsbury13d6e582017-08-31 13:03:12 -040012 always:
Monty Tayloreb093982017-08-30 19:16:21 -050013
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:
David Shrewsbury13d6e582017-08-31 13:03:12 -040021 chdir: /failure-itemloop/somewhere/that/does/not/exist