improve knot roles reloading behavior

With this change, the nameserver is not restarted on configuration
updates but only reloaded instead.
This commit is contained in:
lilly 2026-05-06 14:14:17 +02:00
commit 5283d2da95
Signed by: lilly
SSH key fingerprint: SHA256:y9T5GFw2A20WVklhetIxG1+kcg/Ce0shnQmbu1LQ37g
2 changed files with 4 additions and 10 deletions

View file

@ -13,7 +13,7 @@
- name: Deploy knot configuration file
tags: [ auth-dns ]
become: true
notify: restart knot
notify: reload knot
ansible.builtin.template:
src: knot.conf.j2
dest: /etc/knot/knot.conf
@ -24,7 +24,7 @@
- name: Deploy configured zones
tags: [ auth-dns ]
become: true
notify: reload knot zones
notify: reload knot
loop: "{{ knot__zones }}"
loop_control:
label: "{{ item.domain }}"