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

@ -1,16 +1,10 @@
---
- name: restart knot
- name: reload knot
tags: [ auth-dns ]
become: true
ansible.builtin.systemd:
name: knot.service
state: restarted
- name: reload knot zones
tags: [ auth-dns ]
become: true
changed_when: true
ansible.builtin.command: "knotc zone-reload"
state: reloaded
- name: netplan apply
tags: [ auth-dns ]