mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-06 02:37:31 +01:00
Fix problem detecting matrix-nginx-proxy state when it is not installed
This commit is contained in:
parent
02bdb7c7bc
commit
b074030d59
@ -28,7 +28,7 @@
|
||||
|
||||
- name: Ensure matrix-nginx-proxy is stopped (if previously installed & started)
|
||||
service: name=matrix-nginx-proxy state=stopped
|
||||
when: "matrix_nginx_proxy_state.status.ActiveState == 'active'"
|
||||
when: "matrix_nginx_proxy_state.status.ActiveState|default('missing') == 'active'"
|
||||
|
||||
- name: Ensure SSL certificates are marked as wanted in acmetool
|
||||
shell: >-
|
||||
@ -40,7 +40,7 @@
|
||||
|
||||
- name: Ensure matrix-nginx-proxy is started (if previously installed & started)
|
||||
service: name=matrix-nginx-proxy state=started
|
||||
when: "matrix_nginx_proxy_state.status.ActiveState == 'active'"
|
||||
when: "matrix_nginx_proxy_state.status.ActiveState|default('missing') == 'active'"
|
||||
|
||||
- name: Ensure periodic SSL renewal cronjob configured
|
||||
template:
|
||||
|
Loading…
Reference in New Issue
Block a user