Ansible doesn't have a document like that, but it probably should.

Francisco pointed you to what the pipe '|' means, I guess you missed it 
http://docs.ansible.com/playbooks_variables.html#jinja2-filters. It is 
basically a filter, e.g:

when: var1|bool

would convert var1 to a Boolean even if it is not True or False (e.g. 
strings 'yes', 'true', 'TRUE',... would be converted to True). This is 
extremely useful when you need to pass a Boolean over command line using -e 
'var1=true', since Ansible would parse this var1 as a string.

Here is how not works as well as parentheses:

when: not var1 and (var2 == 'blue' or var3 == 'red')


Contains operator for what exactly? String? Array?


On Sunday, October 5, 2014 6:59:36 PM UTC+2, Eric Wedaa wrote:
>
> Figures, Here's an example
>
> http://www.informit.com/articles/article.aspx?p=395035&seqNum=2
>
> It shows all the operators in perl, string, text, and logical, and 
> implicitly shows that you can bundle them together.
>
> >>>Ericw
>

-- 
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/e695cca2-fdbe-40bb-a9d5-e8e73c3a60dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to