Restart caddy in deploy script when caddy config changes

This commit is contained in:
sepia 2025-07-29 14:37:26 -05:00
parent 77c70e0dd1
commit 8d0d39bf14
2 changed files with 9 additions and 1 deletions

View file

@ -68,6 +68,14 @@
owner: root
group: root
mode: "0644"
register: caddy_config_copy
- name: Restart Caddy service if config changed
systemd:
name: caddy
state: restarted
daemon_reload: yes
when: caddy_config_copy.changed
- name: Ensure Supervisor directory exists
file: