feat(bind9): support systemd drop-ins

Keep role configuration namespaced and allow hosts to customize systemd startup.

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
volker.raschekandCopilot committed 2026-10-24 16:45:32 +02:00
1 parent 65e088cdd5
commit d7826d46a1
14 files changed
+121 -68

No files matched your search

+5 -5
View File
@@ -7,8 +7,8 @@
# file "named.ca";
# };
include "{{ bind_config_directory }}/named.conf.acl";
include "{{ bind_config_directory }}/named.conf.logging";
include "{{ bind_config_directory }}/named.conf.options";
include "{{ bind_config_directory }}/named.conf.tsigkeys";
include "{{ bind_config_directory }}/named.conf.views";
include "{{ bind9_config_directory }}/named.conf.acl";
include "{{ bind9_config_directory }}/named.conf.logging";
include "{{ bind9_config_directory }}/named.conf.options";
include "{{ bind9_config_directory }}/named.conf.tsigkeys";
include "{{ bind9_config_directory }}/named.conf.views";
+1 -1
View File
@@ -184,7 +184,7 @@ options {
# allow-update-forwarding {};
{% endif %}
directory "{{ bind_config_directory }}";
directory "{{ bind9_config_directory }}";
# This accepts expired signatures when verifying DNSSEC signatures. The default is no. Setting this option to yes
# leaves named vulnerable to replay attacks.
+2 -2
View File
@@ -148,11 +148,11 @@ view "{{ view.name }}" {
# contact the Master, ffor whatever reason, the zone may be left with
# no effective Authoritative Name Servers.
{% if zone.file is defined and zone.file | length > 0 and not zone.file.startswith('/') %}
file "{{ bind_config_directory }}/{{ zone.config.file }}";
file "{{ bind9_config_directory }}/{{ zone.config.file }}";
{% elif zone.file is defined and zone.file | length > 0 and zone.file.startswith('/')%}
file "{{ zone.config.file }}";
{% else %}
# file "{{ bind_config_directory }}/...";
# file "{{ bind9_config_directory }}/...";
{% endif %}
# This option is only meaningful if the forwarders list is not empty. A
@@ -0,0 +1,4 @@
#
# {{ ansible_managed }}
#
{{ bind9_systemd_dropin }}