First commit - Added DNS playbooks

This commit is contained in:
Stupéflo 2024-05-14 18:41:12 +02:00
commit 2a01f9e57d
Signed by: stupeflo
GPG key ID: 873D883BD359DEE2
8 changed files with 143 additions and 0 deletions

View file

@ -0,0 +1,22 @@
acl "{{ domain_name }}-acl" {
{% if transfer_hosts %}
{% for ip in transfer_hosts %}
{{ ip }};
{% endfor %}
{% else %}
none;
{% endif %}
};
zone "{{ domain_name }}" IN {
type master;
file "{{ dns.paths.primary_zones }}/db.{{ domain_name }}";
#auto-dnssec maintain;
inline-signing yes;
dnssec-policy default;
serial-update-method increment;
allow-update { none; };
allow-transfer { {{ domain_name }}-acl; };
notify yes;
key-directory "{{ dns.paths.keys }}";
};