zone "{{ domain }}" { type slave; file "{{ database_file }}"; masters { {% for fqdn in masters %} {{ hostvars[fqdn].ansible_default_ipv4.address }}; {{ hostvars[fqdn].ansible_default_ipv6.address }}; {% endfor %} }; };