21 lines
407 B
Django/Jinja
21 lines
407 B
Django/Jinja
{{ ansible_managed | comment }}
|
|
|
|
#
|
|
# Replica for zones of primary {{ primary }}
|
|
#
|
|
|
|
pattern:
|
|
name: xfr-{{ primary }}
|
|
zonefile: "/var/lib/nsd/replica/%szone"
|
|
{% for addr in masters %}
|
|
allow-notify: {{ addr }} NOKEY
|
|
{% endfor %}
|
|
{% for addr in masters %}
|
|
request-xfr: {{ addr }} NOKEY
|
|
{% endfor %}
|
|
|
|
{% for zone in zones %}
|
|
zone:
|
|
name: {{ zone }}.
|
|
include-pattern: "xfr-{{ primary }}"
|
|
{% endfor %}
|