On 07. feb. 2017 19:21, Trond Hindenes wrote:


For the record, I also tried the builtin jinja replace filter:


{
  "datacenter": "{{ consul_dc_name }}",
  "data_dir": "{{ consul_folder |replace('\','\\') }}\\data",

But that just caused Ansible to choke.

I believe the filter to_json should work

"data_dir": "{{ consul_folder | to_json }}\\data",

--
Kai Stian Olstad

--
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/b649644a-3636-8433-15fa-562807dd0c31%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to