Are those underscores before the names of the keys typos?
On Wed, Sep 24, 2014 at 2:58 PM, Matt Martz <[email protected]> wrote: > An example being: > > dict1: {{dict1|to_yaml}} > > Which produces: > > dict1: {_int1: '5', _str1: four} > > On Wed, Sep 24, 2014 at 1: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 >> > > > > -- > 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/CAD8N0v9HWuR%2BNwBeUzOmgLxCF_%2Bx6NHp_mbGxooG9gyfD3YJZA%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CAD8N0v9HWuR%2BNwBeUzOmgLxCF_%2Bx6NHp_mbGxooG9gyfD3YJZA%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%2BnsWgz70dT_ey-Jiq7o84JYmyXYY-42f42Cu5M9tGootMceXA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
