zone "{{ domain }}" { type master; file "{{ database_signed_file }}"; notify yes; allow-transfer { {% for fqdn in slaves %} {{ hostvars[fqdn].ansible_default_ipv4.address }}; {{ hostvars[fqdn].ansible_default_ipv6.address }}; {% endfor %} }; also-notify { {% for fqdn in slaves %} {{ hostvars[fqdn].ansible_default_ipv4.address }}; {{ hostvars[fqdn].ansible_default_ipv6.address }}; {% endfor %} }; };