21 lines
410 B
Django/Jinja
21 lines
410 B
Django/Jinja
{{ ansible_managed | comment }}
|
|
|
|
#
|
|
# Replica for zones of 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 %}
|