{% for zone in dns_zones %} zone "{{ zone.zone_name }}" { type master; file "/etc/bind/{{ zone.zone_file }}"; allow-transfer { {{ dns_replica_ip }}; }; }; {% endfor %}