Assert documentation and possibilities

Sorry for newbie question but I cannot find any information on what can be done with assert. For example, going through ansible modules in galaxy, I found that you can do something like ‘var is number’ to test that var is integer and not string. Where can I found documentation on what can be done with assert eg is there something like ‘var2 is email’. So the basic question is, where can I find supported tests for assert?

Thanks

It is documented at https://docs.ansible.com/ansible/latest/user_guide/playbooks_conditionals.html and conditionals is the search term you wanted.

Use Ansible tests
https://docs.ansible.com/ansible/latest/user_guide/playbooks_tests.html

and Jinja tests
https://jinja.palletsprojects.com/en/master/templates/#list-of-builtin-tests

In addition to this, you can write tests on your own
https://docs.ansible.com/ansible/latest/dev_guide/developing_plugins.html#test-plugins

Thanks Andrew and Vladimir. That’s very helpful.