Jinja2 basically uses mostly-like-Python comparisons, so it's a lot simpler. And this is what the "when" in Ansible uses to evaluate statements.
We try to not overwhelm folks with all of the Jinja2, in fact, overuse of Jinja2 in Ansible playbooks is something of a problem in user-land. Rather, the documentation shows some of the basic examples and points towards the Jinja2 documentation for those that wish to learn more. I want to keep that from being too overwhelming, or also encouraging a new user to use "all" of the Jinja2 too soon, which would lead to some ungainly playbooks. Anyway, that's kind of why it is the way it is. With great templating power comes great responsibility, etc :) On Sun, Oct 5, 2014 at 3:42 PM, Eric Wedaa <[email protected]> wrote: > > For instance, in Perl and Bash, there are different operators for numeric > comparisons and string comparisons. > > On Sunday, October 5, 2014 1:20:29 PM UTC-4, Strahinja Kustudić wrote: >> >> Ansible doesn't have a document like that, but it probably should. >> >> Contains operator for what exactly? String? Array? >> > -- > 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/8b3f0608-e405-47ac-90f5-780b3dbe6827%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/8b3f0608-e405-47ac-90f5-780b3dbe6827%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CA%2BnsWgxvXbCrsHM%2BFRA0dQRhovOyeJc8HW_mhsPNrT%2Bt6EhjiA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
