Tests — Ansible Documentation
docs.ansible.com › ansible › latestDec 21, 2021 · Testing if a list contains a value . New in version 2.8. Ansible includes a contains test which operates similarly, but in reverse of the Jinja2 provided in test. The contains test is designed to work with the select, reject, selectattr, and rejectattr filters.