{% for host in hosts %} {{host}}:{{hosts[host]['service_profiles']|join(',')}} {% endfor %}