Use path variables for Unbound. Changes #31

This commit is contained in:
Crest 2022-07-04 02:57:18 +02:00
parent 53f05a7071
commit 50a3a3d270
2 changed files with 4 additions and 4 deletions

View file

@ -5,10 +5,10 @@
state: reloaded
- name: Reload unbound
command: s6-svc -h /run/service/unbound
command: s6-svc -h {{ s6_scan_dir }}/unbound
- name: Restart unbound
command: s6-svc -wR -T 5000 -ru /run/service/unbound
command: s6-svc -wR -T 5000 -ru {{ s6_scan_dir }}/unbound
- name: Restart unbound log
command: s6-svc -wR -T 5000 -ru /run/service/unbound-log
command: s6-svc -wR -T 5000 -ru {{ s6_scan_dir }}/unbound-log

View file

@ -67,7 +67,7 @@
meta: flush_handlers
- name: Start unbound
command: fdmove -c 2 1 s6-rc -u -v 2 -t 15000 change unbound
command: fdmove -c 2 1 s6-rc -l {{ s6_live_dir }} -u -v 2 -t 15000 change unbound
register: change
changed_when: change.stdout | length > 0