{% for csv_group in r_csv_inventory.list %}
[{{ csv_group.tower_group }}]
{% for csv_host in r_csv_inventory.list %}
{% if csv_host.tower_group == csv_group.tower_group %}
{{ csv_host.inventory_name }}
{% endif %}
{% endfor %}

{% endfor %}
