Re: [ansible-project] when conditionals syntax

2018-01-30 Thread John Harmon
On Tuesday, January 30, 2018 at 9:23:29 AM UTC-7, Matt Martz wrote: > > Yes, you use of `| "yes"` is not proper jinja2. > > `|` is used to "pipe" something into a filter function, and "yes" is not a > filter function. > > Are you trying to check if it also "yes". Look to using the bool filter

Re: [ansible-project] when conditionals syntax

2018-01-30 Thread Matt Martz
Yes, you use of `| "yes"` is not proper jinja2. `|` is used to "pipe" something into a filter function, and "yes" is not a filter function. Are you trying to check if it also "yes". Look to using the bool filter (also use `and` instead of `&&`): ``` when: install|default(false)|bool and

[ansible-project] when conditionals syntax

2018-01-30 Thread John Harmon
Is something wrong with the following? It seems to get executed no matter what. In addition, where can I find more information about this syntax? Is this considered jinja2 syntax? or something else? - include_tasks: install.yml when: ( install|default(false)|lower = "true" | "yes" ) &&