forked from data.coop/ansible
Add handler to restart nginx container when adding nextcloud VHost config
This commit is contained in:
parent
f0979ec654
commit
74883a564d
7
roles/docker/handlers/main.yml
Normal file
7
roles/docker/handlers/main.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
- name: "restart nginx"
|
||||||
|
community.docker.docker_container:
|
||||||
|
name: "nginx-proxy"
|
||||||
|
restart: "yes"
|
||||||
|
state: "started"
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
- name: upload vhost config for cloud.data.coop
|
- name: upload vhost config for cloud.data.coop
|
||||||
template:
|
template:
|
||||||
src: files/configs/nextcloud/vhost
|
src: files/configs/nextcloud/vhost
|
||||||
dst: "{{ nginx.volume_folder }}/vhost/{{ nextcloud.domain }}"
|
dest: "{{ nginx.volume_folder }}/vhost/{{ nextcloud.domain }}"
|
||||||
|
notify: "restart nginx"
|
||||||
|
|
||||||
- name: setup nextcloud containers
|
- name: setup nextcloud containers
|
||||||
docker_compose:
|
docker_compose:
|
||||||
|
|
Loading…
Reference in a new issue