Debian Codegraph @

lib/ansible/plugins/test/subset.yml

raw
1 DOCUMENTATION:
2 name: subset
3 author: Ansible Core
4 version_added: "2.4"
5 aliases: [issubset]
6 short_description: is the list a subset of this other list
7 description:
8 - Validate if the first list is a sub set (is included) of the second list.
9 options:
10 _input:
11 description: List.
12 type: list
13 elements: raw
14 required: True
15 _superset:
16 description: List to test against.
17 type: list
18 elements: raw
19 required: True
20 EXAMPLES: |
21 big: [1,2,3,4,5]
22 small: [3,4]
23 issmallinbig: '{{ small is subset(big) }}'
24 RETURN:
25 _value:
26 description: Returns V(True) if the specified list is a subset of the provided list, V(False) otherwise.
27 type: boolean