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: 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 - 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: