added handler to restart caddy on caddyfile change
This commit is contained in:
parent
6ef0d5f1d5
commit
8dae2bb825
@ -2,6 +2,13 @@
|
|||||||
- name: restart glance
|
- name: restart glance
|
||||||
community.docker.docker_compose_v2:
|
community.docker.docker_compose_v2:
|
||||||
project_src: /opt/stacks/glance
|
project_src: /opt/stacks/glance
|
||||||
|
files:
|
||||||
|
- compose.yml
|
||||||
|
state: restarted
|
||||||
|
|
||||||
|
- name: restart caddy
|
||||||
|
community.docker.docker_compose_v2:
|
||||||
|
project_src: /opt/stacks/caddy
|
||||||
files:
|
files:
|
||||||
- compose.yml
|
- compose.yml
|
||||||
state: restarted
|
state: restarted
|
@ -11,6 +11,7 @@
|
|||||||
dest: /opt/stacks/caddy/Caddyfile
|
dest: /opt/stacks/caddy/Caddyfile
|
||||||
owner: root
|
owner: root
|
||||||
mode: 644
|
mode: 644
|
||||||
|
notify: restart caddy
|
||||||
|
|
||||||
- name: copy caddy compose file
|
- name: copy caddy compose file
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
|
Loading…
Reference in New Issue
Block a user