| 1 |
|
| 2 |
PLAY [testhost] **************************************************************** |
| 3 |
|
| 4 |
TASK [Changed task] ************************************************************ |
| 5 |
changed: [testhost] |
| 6 |
|
| 7 |
TASK [Ok task] ***************************************************************** |
| 8 |
ok: [testhost] |
| 9 |
|
| 10 |
TASK [Failed task] ************************************************************* |
| 11 |
[ERROR]: Task failed: Action failed: no reason |
| 12 |
Origin: TEST_PATH/test.yml:16:7 |
| 13 |
|
| 14 |
14 changed_when: false |
| 15 |
15 |
| 16 |
16 - name: Failed task |
| 17 |
^ column 7 |
| 18 |
|
| 19 |
fatal: [testhost]: FAILED! => {"changed": false, "msg": "no reason"} |
| 20 |
...ignoring |
| 21 |
|
| 22 |
TASK [Task with var in name (foo bar)] ***************************************** |
| 23 |
changed: [testhost] |
| 24 |
|
| 25 |
TASK [Loop task] *************************************************************** |
| 26 |
changed: [testhost] => (item=foo-1) |
| 27 |
changed: [testhost] => (item=foo-2) |
| 28 |
changed: [testhost] => (item=foo-3) |
| 29 |
|
| 30 |
TASK [debug loop] ************************************************************** |
| 31 |
changed: [testhost] => (item=debug-1) => { |
| 32 |
"msg": "debug-1" |
| 33 |
} |
| 34 |
[ERROR]: Task failed: Action failed: A 'failed_when' expression evaluated to 'True'. |
| 35 |
Origin: TEST_PATH/test.yml:38:7 |
| 36 |
|
| 37 |
36 |
| 38 |
37 # detect "changed" debug tasks being hidden with display_ok_tasks=false |
| 39 |
38 - name: debug loop |
| 40 |
^ column 7 |
| 41 |
|
| 42 |
failed: [testhost] (item=debug-2) => { |
| 43 |
"msg": "debug-2" |
| 44 |
} |
| 45 |
ok: [testhost] => (item=debug-3) => { |
| 46 |
"msg": "debug-3" |
| 47 |
} |
| 48 |
fatal: [testhost]: FAILED! => {"msg": "One or more items failed"} |
| 49 |
...ignoring |
| 50 |
|
| 51 |
TASK [EXPECTED FAILURE Failed task to be rescued] ****************************** |
| 52 |
[ERROR]: Task failed: Action failed: Failed as requested from task |
| 53 |
Origin: TEST_PATH/test.yml:54:11 |
| 54 |
|
| 55 |
52 |
| 56 |
53 - block: |
| 57 |
54 - name: EXPECTED FAILURE Failed task to be rescued |
| 58 |
^ column 11 |
| 59 |
|
| 60 |
fatal: [testhost]: FAILED! => {"changed": false, "msg": "Failed as requested from task"} |
| 61 |
|
| 62 |
TASK [Rescue task] ************************************************************* |
| 63 |
changed: [testhost] |
| 64 |
|
| 65 |
TASK [include_tasks] *********************************************************** |
| 66 |
included: .../test/integration/targets/callback_default/include_me.yml for testhost => (item=1) |
| 67 |
|
| 68 |
TASK [debug] ******************************************************************* |
| 69 |
ok: [testhost] => { |
| 70 |
"item": 1 |
| 71 |
} |
| 72 |
|
| 73 |
TASK [copy] ******************************************************************** |
| 74 |
changed: [testhost] |
| 75 |
|
| 76 |
TASK [replace] ***************************************************************** |
| 77 |
--- before: .../test_diff.txt |
| 78 |
+++ after: .../test_diff.txt |
| 79 |
@@ -1 +1 @@ |
| 80 |
-foo |
| 81 |
\ No newline at end of file |
| 82 |
+bar |
| 83 |
\ No newline at end of file |
| 84 |
|
| 85 |
changed: [testhost] |
| 86 |
|
| 87 |
TASK [replace] ***************************************************************** |
| 88 |
ok: [testhost] |
| 89 |
|
| 90 |
TASK [debug] ******************************************************************* |
| 91 |
ok: [testhost] => (item=a) => { |
| 92 |
"msg": "a" |
| 93 |
} |
| 94 |
|
| 95 |
RUNNING HANDLER [Test handler 1] *********************************************** |
| 96 |
changed: [testhost] |
| 97 |
|
| 98 |
RUNNING HANDLER [Test handler 2] *********************************************** |
| 99 |
ok: [testhost] |
| 100 |
|
| 101 |
RUNNING HANDLER [Test handler 3] *********************************************** |
| 102 |
changed: [testhost] |
| 103 |
|
| 104 |
PLAY [testhost] **************************************************************** |
| 105 |
|
| 106 |
TASK [First free task] ********************************************************* |
| 107 |
changed: [testhost] |
| 108 |
|
| 109 |
TASK [Second free task] ******************************************************** |
| 110 |
changed: [testhost] |
| 111 |
|
| 112 |
TASK [Include some tasks] ****************************************************** |
| 113 |
included: .../test/integration/targets/callback_default/include_me.yml for testhost => (item=1) |
| 114 |
|
| 115 |
TASK [debug] ******************************************************************* |
| 116 |
ok: [testhost] => { |
| 117 |
"item": 1 |
| 118 |
} |
| 119 |
|
| 120 |
PLAY RECAP ********************************************************************* |
| 121 |
testhost : ok=20 changed=11 unreachable=0 failed=0 skipped=4 rescued=1 ignored=2 |
| 122 |
|