Fix problem detecting matrix-nginx-proxy state when it is not installed

This commit is contained in:
Slavi Pantaleev 2017-08-08 14:31:01 +03:00
parent 02bdb7c7bc
commit b074030d59

View File

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