Ansible Test Plugins
1 min read
Test plugins evaluate a variable against a condition, returning a boolean (e.g. when: result is success). Common built-in tests:

exists, success, url, search

See the official test documentation for the full list and usage.