22 lines
414 B
Text
22 lines
414 B
Text
|
{{ 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 %}
|