3
0
mirror of https://github.com/spantaleev/matrix-docker-ansible-deploy.git synced 2025-12-15 21:34:45 +00:00

Do not set up nginx-proxy auto-restart if not using Let's Encrypt

Fix for d28bdb3258
This commit is contained in:
Slavi Pantaleev
2018-12-23 15:38:33 +02:00
parent 268e9b5b66
commit e033eb443b
2 changed files with 4 additions and 2 deletions

View File

@@ -62,7 +62,7 @@
src: "{{ role_path }}/templates/cron.d/matrix-nginx-proxy-periodic-restarter.j2"
dest: "/etc/cron.d/matrix-nginx-proxy-periodic-restarter"
mode: 0600
when: matrix_nginx_proxy_enabled
when: "matrix_nginx_proxy_enabled and matrix_ssl_retrieval_method == 'lets-encrypt'"
#
# Tasks related to getting rid of matrix-nginx-proxy (if it was previously enabled)
@@ -87,4 +87,4 @@
file:
path: "/etc/cron.d/matrix-nginx-proxy-periodic-restarter"
state: absent
when: "not matrix_nginx_proxy_enabled"
when: "not matrix_nginx_proxy_enabled or matrix_ssl_retrieval_method != 'lets-encrypt'"