Ansible templates - " gets suibstituted with ' ?

13 views
Skip to first unread message

Hristo Stoyanov

unread,
Aug 10, 2015, 9:01:52 PM8/10/15
to Ansible Project
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!
Reply all
Reply to author
Forward
0 new messages