On Mon, Mar 02, 2020 at 01:26:28PM -0800, harry devine wrote: > Is there a "not equal to" jinja filter? All of the documentation I find > shows there's an 'equalto' but I can't seem to find any "no equalto" > equivalent. Even a greater than would work but I can't find anything like > that either.
There is not a "not equal to" filter or an "equalto" filer. But you have a "not equal to" _test_ https://jinja.palletsprojects.com/en/2.10.x/templates/#ne As used in Daniels example and an "equal to" _test_ https://jinja.palletsprojects.com/en/2.10.x/templates/#eq Greater then _test_ is called gt https://jinja.palletsprojects.com/en/2.10.x/templates/#gt All the _tests_ is here https://jinja.palletsprojects.com/en/2.10.x/templates/#list-of-builtin-tests -- Kai Stian Olstad -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/20200302214044.o2j3l4mtzindcrte%40olstad.com.
