Another use-case.
Say I have two of variables:
newrelic_license_key: null
newrelic_environment: null
newrelic: no
And if I need to test if there is need to install newrelic on a
server I need to write this:
when: newrelic and newrelic_license_key is not none
and newrelic_environment is not none
I would prefer to do this:
newrelic_license_key: null
newrelic_environment: null
newrelic: no
use_newrelic: {{ newrelic and newrelic_license_key is
not none and newrelic_environment is not none }}
And then use
use_newrelic in all conditional statements.
There is a workaround for this: wrap
use_newrelic value to
quotes and then check it in that way:
use_newrelic == "True"
--
With kind regards, Andrew Pashkin.
cell phone - +7 (985) 898 57 59
Skype - waves_in_fluids
e-mail - andrew....@gmx.co.uk