mirror of
https://github.com/ansible/ansible.git
synced 2026-07-28 08:05:22 +02:00
* Register projections and action plugin variable API Co-authored-by: Matt Clay <matt@mystile.com> Co-authored-by: Patrick Kingston <pkingsto@redhat.com>
33 lines
952 B
Plaintext
33 lines
952 B
Plaintext
+ ansible-playbook -i inventory test.yml
|
|
++ set +x
|
|
[ERROR]: Task failed: Action failed: no reason
|
|
Origin: TEST_PATH/test.yml:16:7
|
|
|
|
14 changed_when: false
|
|
15
|
|
16 - name: Failed task
|
|
^ column 7
|
|
|
|
fatal: [testhost]: FAILED! => {"changed": false, "msg": "no reason"}
|
|
[ERROR]: Task failed: Action failed: A 'failed_when' expression evaluated to 'True'.
|
|
Origin: TEST_PATH/test.yml:38:7
|
|
|
|
36
|
|
37 # detect "changed" debug tasks being hidden with display_ok_tasks=false
|
|
38 - name: debug loop
|
|
^ column 7
|
|
|
|
failed: [testhost] (item=debug-2) => {
|
|
"msg": "debug-2"
|
|
}
|
|
fatal: [testhost]: FAILED! => {"msg": "One or more items failed"}
|
|
[ERROR]: Task failed: Action failed: Failed as requested from task
|
|
Origin: TEST_PATH/test.yml:54:11
|
|
|
|
52
|
|
53 - block:
|
|
54 - name: EXPECTED FAILURE Failed task to be rescued
|
|
^ column 11
|
|
|
|
fatal: [testhost]: FAILED! => {"changed": false, "msg": "Failed as requested from task"}
|