On Friday, July 17, 2015 at 7:02:51 PM UTC+5:30, Abhijit Menon-Sen wrote:
>
> Could you provide more details, please? It worked in the simple case I
> just tried:
>
> $ ansible localhost -m debug -a "msg='{{ p|to_json }}'" --extra-vars
> @p.yml
> localhost | success >> {
> "msg": "[{\"foo\": 1, \"bar\": 2}, {\"buzh\": 42, \"barf\": 2}]"
> }
>
> -- Abhijit
>
I've been down this path also, and see just what you see. But when I store
that value (say
in consul to be used later) it actually stores the quoted quotes -- \" --
not the parsable json.
I'll build some simple examples that demonstrate my issues. Hopefully I'm
making some silly mistakes.
--
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/45f5fd84-2b3b-40b9-a12a-4fec9eb15de8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.