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 - [email protected]
--
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/537BA8B4.20809%40gmx.co.uk.
For more options, visit https://groups.google.com/d/optout.