I’ve verified this in both ansible 1.2.2 and 1.3.0; any variable I set in an inventory file cannot be evaluated as a variable, which is a pretty big caveat the docs don’t mention. I can only evaluate variables as booleans if they are set in the playbooks.
Hi, sorry for necro bumping this but I think that have variable in inventory files are necessary in some use case and that boolean should be working in it.
For example I have to environments (and to inventory files) one with a proxy the other without. To associate the proxy to the environment I add a use_proxy=true in my inventory file. If I put it in group_vars I will have to change it each time I switch environment.
So if this use case make sens to you I think the variable should be properly evaluated, don’t you?