Debian Codegraph @

lib/ansible/plugins/test/any.yml

raw
1 DOCUMENTATION:
2 name: any
3 author: Ansible Core
4 version_added: "2.4"
5 short_description: is any condition in a list true
6 description:
7 - This test checks each condition in a list for truthiness.
8 - Same as the C(any) Python function.
9 options:
10 _input:
11 description: List of conditions, each can be a boolean or conditional expression that results in a boolean value.
12 type: list
13 elements: raw
14 required: True
15 EXAMPLES: |
16 varexpression: "{{ 3 == 3 }}"
17 # is any statement true?
18 {{ [false, booleanvar, varexpression] is any}}
19
20 RETURN:
21 _value:
22 description: Returns V(True) if any element of the list was true, V(False) otherwise.
23 type: boolean