Debian Codegraph @

lib/ansible/plugins/test/failure.yml

raw
1 DOCUMENTATION:
2 name: failed
3 author: Ansible Core
4 version_added: "1.9"
5 short_description: did the task fail
6 aliases: [failure]
7 description:
8 - Tests if task finished in failure, opposite of C(succeeded).
9 - This test checks for the existence of a C(failed) key in the input dictionary and that it is V(True) if present.
10 - Tasks that get skipped or not executed due to other failures (syntax, templating, unreachable host, etc) do not return a 'failed' status.
11 options:
12 _input:
13 description: registered result from an Ansible task
14 type: dictionary
15 required: True
16 EXAMPLES: |
17 # test 'status' to know how to respond
18 {{ taskresults is failed }}
19
20 RETURN:
21 _value:
22 description: Returns V(True) if the task was failed, V(False) otherwise.
23 type: boolean