Skip some uninstall tasks if not necessary to run

This commit is contained in:
Slavi Pantaleev 2019-03-13 07:40:51 +02:00
parent b066f8a0d8
commit 2d56ff0afa
6 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,7 @@
stat:
path: "/etc/systemd/system/matrix-corporal.service"
register: matrix_corporal_service_stat
when: "not matrix_corporal_enabled"
- name: Ensure matrix-corporal is stopped
service:

View File

@ -58,6 +58,7 @@
stat:
path: "/etc/systemd/system/matrix-coturn.service"
register: matrix_coturn_service_stat
when: "not matrix_coturn_enabled"
- name: Ensure matrix-coturn is stopped
service:

View File

@ -46,6 +46,7 @@
stat:
path: "/etc/systemd/system/matrix-mailer.service"
register: matrix_mailer_service_stat
when: "not matrix_mailer_enabled"
- name: Ensure matrix-mailer is stopped
service:

View File

@ -132,6 +132,7 @@
stat:
path: "/etc/systemd/system/matrix-nginx-proxy.service"
register: matrix_nginx_proxy_service_stat
when: "not matrix_nginx_proxy_enabled"
- name: Ensure matrix-nginx-proxy is stopped
service:

View File

@ -60,6 +60,7 @@
stat:
path: "/etc/systemd/system/matrix-riot-web.service"
register: matrix_riot_web_service_stat
when: "not matrix_riot_web_enabled"
- name: Ensure matrix-riot-web is stopped
service:

View File

@ -53,6 +53,7 @@
stat:
path: "/etc/systemd/system/matrix-goofys.service"
register: matrix_goofys_service_stat
when: "not matrix_s3_media_store_enabled"
- name: Ensure matrix-goofys is stopped
service: