{
{% for inv_host in r_get_inv_host_list.json.results %}
  "{{ inv_host.name }}": {
    "groups" : {
{%   for twr_groups in inv_host.summary_fields.groups.results %}
      "{{ twr_groups.name }}": "{{ twr_groups.id }}",
{%   endfor %}
    }
  },
{% endfor %}
}
