On Wednesday, 29 April 2015 23:47:42 UTC+2, Brian Coca wrote:

You can use lookup('env' ..) to check for the variable,  but currently 
> there is no way to dynamically check for a setting. 
>

Thanks Brian! I've combined the lookup with "assert" and it works 
perfectly. The play fails if the environment variable isn't set, or is set 
to the wrong value.

Regards,
Anand 

-- 
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/e77d824a-4cb3-4929-8caf-46804f6e1074%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to