# Ansible converts variable to comment

**URL:** <https://forum.ansible.com/t/ansible-converts-variable-to-comment/22808>\
**Category:** Ansible Project\
**Created:** [October 17, 2016, 5:54pm UTC](https://forum.ansible.com/t/ansible-converts-variable-to-comment/22808 "2016-10-17T17:54:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Becotte](https://avatars.discourse-cdn.com/v4/letter/p/8baadc/32.png) [@Paul\_Becotte](https://forum.ansible.com/u/Paul_Becotte)\
**Post date:** [October 17, 2016, 5:54pm UTC](https://forum.ansible.com/t/ansible-converts-variable-to-comment/22808/1 "2016-10-17T17:54:47Z")

</div>

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!
