# Ansible templates - " gets suibstituted with ' ?

**URL:** <https://forum.ansible.com/t/ansible-templates-gets-suibstituted-with/18987>\
**Category:** Ansible Project\
**Tags:** galaxy-ng\
**Created:** [August 10, 2015, 11:46pm UTC](https://forum.ansible.com/t/ansible-templates-gets-suibstituted-with/18987 "2015-08-10T23:46:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hristo\_Stoyanov](https://avatars.discourse-cdn.com/v4/letter/h/c6cbf5/32.png) [@Hristo\_Stoyanov](https://forum.ansible.com/u/Hristo_Stoyanov)\
**Post date:** [August 10, 2015, 11:46pm UTC](https://forum.ansible.com/t/ansible-templates-gets-suibstituted-with/18987/1 "2015-08-10T23:46:10Z")

</div>

Hi all,  
I am trying to generate Dockerfiles with Ansible template - see the role and the template in Ansible Galaxy: **peruncs.docker**

So this:

**…**  
**instruction: CMD**  
**value: ‘[“/var/lib/{{postrges\_version}}/bin/postgres”]’**  
**…**

ends up like:

**…**  
**CMD** **‘[’/var/lib/9.4/bin/postgres’]’**

**…**

and I lost the my ", which renders the Dockerfiles useless!

Any help ? How can I convince Jinja to not substitute " with ’ ? I tried " , |safe filter, even {% raw %} - it’s just keep doing it …sigh

Thanks in advance!
