good idea! I'll try!

On Tuesday, February 7, 2017 at 8:34:17 PM UTC+1, Kai Stian Olstad wrote:
>
> 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/656a88d0-960d-48cf-82b0-45fad24ac61b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to