Apparently reloading knot is not enough with some config changes (e.g. listen-address), restart instead

This commit is contained in:
s3lph 2021-11-05 12:58:53 +01:00
parent 7ce38e0edf
commit 35ed3e09f2
2 changed files with 6 additions and 1 deletions

View file

@ -4,3 +4,8 @@
service: service:
name: knot name: knot
state: reloaded state: reloaded
- name: restart knot
service:
name: knot
state: restarted

View file

@ -9,4 +9,4 @@
mode: 0640 mode: 0640
vars: vars:
zones: "{{ hostvars[inventory_hostname] | dict2items | selectattr('key', 'match', '^knot_zone_.+$') | map(attribute='value') | list }}" zones: "{{ hostvars[inventory_hostname] | dict2items | selectattr('key', 'match', '^knot_zone_.+$') | map(attribute='value') | list }}"
notify: reload knot notify: restart knot