{{ ansible_managed | comment }} {% for item in hostname__hosts %} {% for addr in item.address %} {{ addr }} {{ item.name | join(" ") }} {% endfor %} {% endfor %}