summaryrefslogtreecommitdiffstats
path: root/roles/dnsserver/templates/named.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/dnsserver/templates/named.conf.j2')
-rw-r--r--roles/dnsserver/templates/named.conf.j28
1 files changed, 5 insertions, 3 deletions
diff --git a/roles/dnsserver/templates/named.conf.j2 b/roles/dnsserver/templates/named.conf.j2
index 5d95298..d3cb657 100644
--- a/roles/dnsserver/templates/named.conf.j2
+++ b/roles/dnsserver/templates/named.conf.j2
@@ -57,9 +57,11 @@ options {
pid-file "/run/named/named.pid";
session-keyfile "/run/named/session.key";
+{% if ansible_distribution == "Fedora" %}
/* https://fedoraproject.org/wiki/Changes/CryptoPolicy */
include "/etc/crypto-policies/back-ends/bind.config";
+{% endif -%}
};
logging {
@@ -117,9 +119,9 @@ logging {
};
{% for key in keylist %}
-key "{{ key.0 }}" {
- algorithm {{ key.2 }};
- secret "{{ key.1 }}";
+key "{{ key.name }}" {
+ algorithm {{ key.algo }};
+ secret "{{ key.secret }}";
};
{% endfor %}