Hi Deepali, Sadly, I haven't found a work-around and am still using Ansible 1.9 since this bug is a big blocker for me...
If you want, you could post a comment on the GitHub issue I've created for this some time ago, to let the Ansible team know this affects not just me: https://github.com/ansible/ansible/issues/14172 Cheers, Christian On Tuesday, June 28, 2016 at 10:22:53 PM UTC+2, Deepali Mittal wrote: > > I am getting the same error using ansible 2.1 stable branch. Did you find > a work around for this? > > - name: Set ELB variables > set_fact: > host: "{{ elb_ins.elb.dns_name }}" > url: 'http//{{ elb_ins.elb.dns_name }}/Server/' > > > On Wednesday, January 27, 2016 at 3:22:49 PM UTC+5:30, Christian Thiemann > wrote: >> >> How can I include single quotes in single-quoted Jinja2 string literals >> in Ansible 2.0? >> >> Minimal test case: >> >> --- >> - hosts: localhost >> tasks: >> - debug: msg="{{ 'foo\'bar\'baz' }}" >> >> Ansible 1.9.4: >> >> ok: [localhost] => { >> "msg": "foo'bar'baz" >> } >> >> Ansible devel: >> >> fatal: [localhost]: FAILED! => {"failed": true, "msg": "template error >> while templating string: expected token 'end of print statement', got 'bar'" >> } >> >> -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/8b8d9261-ba24-48f0-b934-d974d96f0525%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
