Thanks for the clarification. I was thinking it was an object-ism. To
complete the story, here's my new jinja2 that puts all the server
information into an externally consumable JSON file:
{
"hostvars": {
{% for key in groups["all"] %}
"{{key}}": {{ hostvars[key] |to_nice_json }},
{% endfor %}
"dummy":{}
}
NOTE: 'dummy' is only needed because the Python JSON reader seems overly
fussed that there shall not be a comma after the last entry.
Cheers, Larry Fast
--
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/ba8d36e5-589c-4ea6-8584-c14f50a74d8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.