"{{ lookup('template','add-datasource.json') | from_json }}" worked.Thanks for responding so quickly; I didn't notice the replies because notifications weren't enabled. - David On Wednesday, February 10, 2016 at 5:52:34 PM UTC+2, Brian Coca wrote: > > The JSON from the template (w/o filters) will be 'typed' by Ansible into a > Python data structure, but if it has to_json it will be kept as string > bypassing the typing. The from_json will convert it to a Python data > structure before Ansible attempts to type it. > > > -- 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/3ab620a8-76d6-4462-988c-a312da1ff4a3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
