Restart caddy in deploy script when caddy config changes
This commit is contained in:
parent
77c70e0dd1
commit
8d0d39bf14
|
@ -68,6 +68,14 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: "0644"
|
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
|
- name: Ensure Supervisor directory exists
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# It is expected that you have sepiatonesxyz defined in your .ssh/config
|
# It is expected that you have sepiatonesxyz defined in your .ssh/config
|
||||||
[production]
|
[production]
|
||||||
sepiatonesxyz ansible_host=sepiatonesxyz
|
sepiatonesxyz ansible_host=sepiatonesxyz ansible_python_interpreter=/usr/bin/python3.11
|
||||||
|
|
Loading…
Reference in New Issue