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/806a199e-8483-47d7-b4cc-008f3f491d7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.