I want to do some check using remote environment variables, which can be read from format like this
{{ ansible_env.NGINX_HOME }}
This "path" or environment variable can be absent, and that's the purpose of that check anyway.
But Ansible treat this as a fatal error, showing error message like
One or more undefined variables: 'dict object' has no attribute 'NGINX_HOME'
What can I do to just skip this?
{{ ansible_env['NGINX_HOME']|default('') }}--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f58820d2-ed6f-4533-b3a7-2d57937949e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.