Just skimming quickly it seems like you might wish to (var 3 | bool) and add some parens
However, really all this casting is almost always unneccessary if you just use YAML true/false in the variables files. On Mon, Jun 30, 2014 at 9:50 PM, Igor Cicimov < [email protected]> wrote: > Hi guys, > > Simple question ... given that the vars below are boolean type with values > of true or false, does this condition make sense? > > when: (var1 | bool and var2 | bool) or not var3 | bool > > Although I would expect to work (based on what I can see in jinja2 > reference) I'm not seeing the desired result so hence the question. > > Thanks > > -- > 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/cdc66b02-9d7f-4d46-b7bf-aeb194e99994%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/cdc66b02-9d7f-4d46-b7bf-aeb194e99994%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%2BnsWgwUcUJM-cGFa7mfJj%3DvnepK0SfK6m4R39whNU6MKpGX5Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
