Add handler to restart nginx container when adding nextcloud VHost config

This commit is contained in:
Jesper Hess 2022-09-02 12:23:19 +02:00
parent f0979ec654
commit 74883a564d
Signed by untrusted user: graffen
GPG Key ID: 351A89E40D763F0F
2 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,7 @@
---
- name: "restart nginx"
community.docker.docker_container:
name: "nginx-proxy"
restart: "yes"
state: "started"

View File

@ -2,7 +2,8 @@
- name: upload vhost config for cloud.data.coop
template:
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
docker_compose: