try adding "_hack":null
example
body: '{"pattern":"^{{item.0.queue}}$", "definition":{"ha-mode":"all",
"ha-sync-mode":"automatic", "federation-upstream-set": "all"}, "priority":
100000, "apply-to": "queues", "_hack":null}'
On Wednesday, February 17, 2016 at 11:16:49 AM UTC-5, David Resnick wrote:
>
> "{{ 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/f262277a-ce1b-4d9b-9da3-7a21b6338c89%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.