2014/1/2 Michael DeHaan <[email protected]>:
> It's quite true that we don't know "yes" means a string when specified as a
> string to -e, and it would seem wrong to automatically boolean-ify it.
> However, you can pass it in as JSON if you like, as -e does take JSON.

Good idea, thanks.

> "But it seems that variables set in vars/main.yml are always converted to
> strings"
>
> This is not the case.
>
> If you do things like x: "{{y}}"
>
> Then yes, it doesn't know y is a bool unless you cast it.

With casting, you mean using the bool filter when using the variable
("{{ x | bool }}")? Or would you expect this to work in vars/main.yml:

x: "{{ y | bool} }"

Regards,
Joost

-- 
Joost Cassee
http://joost.cassee.net

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to