ansible / ansible.builtin / v2.16.5 / test / contains does the list contain this element | "added in version" 2.4 of ansible.builtin" Authors: Ansible Coreansible.builtin.contains (v2.16.5) — test
pip
Install with pip install ansible-core==2.16.5
Checks the supplied element against the input list to see if it exists within it.
_input: description: List of elements to compare. elements: raw required: true type: list _contained: description: Element to test for. required: true type: raw
_value: description: Returns V(True) if the specified element is contained in the supplied sequence, V(False) otherwise. type: boolean