From 9c329c8897bb056e1b423c3183b12aeb77696d85 Mon Sep 17 00:00:00 2001 From: s3lph Date: Sat, 16 Jan 2021 05:40:04 +0100 Subject: [PATCH] Add option to configure knot server nsid --- roles/knot/defaults/main.yml | 2 ++ roles/knot/templates/etc/knot/knot.conf.j2 | 1 + 2 files changed, 3 insertions(+) diff --git a/roles/knot/defaults/main.yml b/roles/knot/defaults/main.yml index 8a21e7b..8fb282a 100644 --- a/roles/knot/defaults/main.yml +++ b/roles/knot/defaults/main.yml @@ -4,6 +4,8 @@ knot_server_rundir: /run/knot knot_server_user: knot knot_server_group: knot knot_server_identity: "{{ ansible_hostname }}" +knot_server_nsid: "{{ ansible_hostname }}" +knot_server_version: "{{ ansible_hostname }}" knot_server_listen: - "::@53" - "0.0.0.0@53" diff --git a/roles/knot/templates/etc/knot/knot.conf.j2 b/roles/knot/templates/etc/knot/knot.conf.j2 index c18f53a..079ba9c 100644 --- a/roles/knot/templates/etc/knot/knot.conf.j2 +++ b/roles/knot/templates/etc/knot/knot.conf.j2 @@ -6,6 +6,7 @@ server: rundir: "{{ knot_server_rundir }}" user: "{{ knot_server_user }}:{{ knot_server_group }}" identity: "{{ knot_server_identity }}" + nsid: "{{ knot_server_nsid }}" {% for addr in knot_server_listen %} listen: "{{ addr }}" {% endfor %}