Hi,
Custom template filters are a great way to take the programming out of my
playbooks. Sometimes I would like to have a Jinja test, though.
For example, I have a filter 'is_in_zone(domain, zone)' to see if a domain
ends with a certain tail. For example, 'test.example.com' is in zone
'example.com' (and in 'com').
{{ domain | is_in_zone(zone) }} would look nicer as {{ domain is
in_zone(zone) }}, and having it as a test would also make it possible to
use it in 'select' filters.
Is it possible to create custom Jinja tests? If not, where in the code
should I look if I want to take a stab at adding that feature?
Regards,
Joost
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/c4944cfc-a3f2-4a6c-a304-409ef072d5c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.