2017-10-08 12:55:01 +00:00
|
|
|
|
# {{ ansible_managed }}
|
|
|
|
|
{% for zone, value in bind_zones.iteritems() %}
|
|
|
|
|
|
|
|
|
|
zone "{{ zone }}" IN {
|
|
|
|
|
type master;
|
|
|
|
|
{% if 'dnssec' in value and value.dnssec %}
|
|
|
|
|
file "/etc/bind/zones/db.{{ zone }}.signed";
|
|
|
|
|
{% else %}
|
|
|
|
|
file "/etc/bind/zones/db.{{ zone }}";
|
|
|
|
|
{% endif %}
|
2017-10-14 23:11:49 +00:00
|
|
|
|
{% if 'allow_transfer' in value and value.dnssec %}
|
|
|
|
|
allow-transfer {
|
|
|
|
|
{% for ip in value.allow_transfer %}
|
|
|
|
|
{{ ip }};
|
|
|
|
|
{% endfor %}
|
|
|
|
|
};
|
|
|
|
|
{% endif %}
|
2017-10-08 12:55:01 +00:00
|
|
|
|
};
|
|
|
|
|
{% endfor %}
|