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/3084d4a1-57e3-444c-bead-fdcd5b1bda4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to