Add option to configure knot server identity

This commit is contained in:
s3lph 2021-01-16 05:23:09 +01:00
parent 3660754332
commit 3dd19606f5
2 changed files with 2 additions and 0 deletions

View file

@ -3,6 +3,7 @@
knot_server_rundir: /run/knot
knot_server_user: knot
knot_server_group: knot
knot_server_identity: "{{ ansible_hostname }}"
knot_server_listen:
- "::@53"
- "0.0.0.0@53"

View file

@ -5,6 +5,7 @@
server:
rundir: "{{ knot_server_rundir }}"
user: "{{ knot_server_user }}:{{ knot_server_group }}"
identity: "{{ knot_server_identity }}"
{% for addr in knot_server_listen %}
listen: "{{ addr }}"
{% endfor %}