added handler to restart caddy on caddyfile change

This commit is contained in:
Phil 2024-10-25 13:52:34 -06:00
parent 6ef0d5f1d5
commit 8dae2bb825
2 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,13 @@
- name: restart glance
community.docker.docker_compose_v2:
project_src: /opt/stacks/glance
files:
- compose.yml
state: restarted
- name: restart caddy
community.docker.docker_compose_v2:
project_src: /opt/stacks/caddy
files:
- compose.yml
state: restarted

View File

@ -11,6 +11,7 @@
dest: /opt/stacks/caddy/Caddyfile
owner: root
mode: 644
notify: restart caddy
- name: copy caddy compose file
ansible.builtin.copy: