Ansible converts variable to comment

7 views
Skip to first unread message

Paul Becotte

unread,
Oct 19, 2016, 11:07:24 AM10/19/16
to Ansible Project
Hi everyone, am trying to troubleshoot a weird problem and can't find anything to suggest what may be causing it.  Basically I have a couple env files that define values.  Later files depend on values from earlier files (especailly encrypted ones).  On in particular is

value: "{{ VAULT_MONGODB_STRING}}"

The variable VAULT_MONGODB_STRING is set in an encrypted_vars.yml file that is processed just before this one.  My problem is that this particular variable is getting converted to a comment.  When it gets put into a template that has

{{value}} in it, we are seeing {# VALUT_MONGODB_STRING #} as the value in the template output.  I am having a hard time figuring the problem, especially since I don't know what would cause this behavior!
Reply all
Reply to author
Forward
0 new messages