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:
@@ -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'"
|
||||
|
||||
Reference in New Issue
Block a user