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)
|
- name: Ensure matrix-nginx-proxy is stopped (if previously installed & started)
|
||||||
service: name=matrix-nginx-proxy state=stopped
|
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
|
- name: Ensure SSL certificates are marked as wanted in acmetool
|
||||||
shell: >-
|
shell: >-
|
||||||
@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
- name: Ensure matrix-nginx-proxy is started (if previously installed & started)
|
- name: Ensure matrix-nginx-proxy is started (if previously installed & started)
|
||||||
service: name=matrix-nginx-proxy state=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
|
- name: Ensure periodic SSL renewal cronjob configured
|
||||||
template:
|
template:
|
||||||
|
Loading…
Reference in New Issue
Block a user