Given an *arbitrary* dictionary like:
test:
one: wan
two: too
three: tree
How can I convert it to a list like:
test:
- one=wan
- two=too
- thee=tree
The end result that I need is actually a string of these list items
("one=one, two=too, three=tree"). I know that I can easily `join()` a list
of items, but if there is an easier way to directly convert the dictionary
to a string, that would work too.
Again, I know neither the number of dictionary elements, nor the key names.
A solution that works in version 2.5 would be best...
--
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/ad406797-d8bb-4735-bce4-41c9b71a2388%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.