Oh, nm, you mean templating the directionary.   Got it, there is also

{{ dict | to_nice_json }}

as well


On Wed, Sep 24, 2014 at 2:55 PM, Michael DeHaan <[email protected]> wrote:

> So that's just indicating unicode output, I'm curious if it's causing any
> specific problems for you?
>
>
>
> On Wed, Sep 24, 2014 at 2:54 PM, Matt Martz <[email protected]> wrote:
>
>> You should probably use either the to_nice_yaml or to_yaml filters
>>
>> On Wed, Sep 24, 2014 at 1:48 PM, kesten broughton <
>> [email protected]> wrote:
>>
>>>
>>> The goal is to define a dictionary like
>>>
>>> dict1:
>>>  int1: 5
>>>  str1: "four"
>>>
>>> and be able to template output the dictionary as a whole (not leaf by leaf) 
>>> such that the output looks like
>>>
>>> dict1: {"int1": 5, "srt1": "four"}
>>>
>>> The actual output prefixes the values on the RHS of the : with a u so it 
>>> looks like
>>> dict1: {"int1": u"5", "srt1": u"four"}
>>>
>>>
>>> dict1: {"int1": u"5", "srt1": u"four"}
>>>
>>> Please see the gist for details.
>>> https://gist.github.com/darKoram/3f2fbcc9b3a003546f3c
>>>
>>>
>>>  --
>>> 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/CAK5UeTtD2jejt8%3DAqFsG2S-YCX3dmDgCw533F5LibW6OKMVRTQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/ansible-project/CAK5UeTtD2jejt8%3DAqFsG2S-YCX3dmDgCw533F5LibW6OKMVRTQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Matt Martz
>> @sivel
>> sivel.net
>>
>> --
>> 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/CAD8N0v96m2VMtLpMvBxCH%2Bgj5ZefdKi-eEp%2Bb6hUjdrBE-5uHw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/ansible-project/CAD8N0v96m2VMtLpMvBxCH%2Bgj5ZefdKi-eEp%2Bb6hUjdrBE-5uHw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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/CA%2BnsWgx%3De6ADTmVbipob7OchWfooy5BZyfA628PBFr2pcct7Mw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to