2023-01-04 12:45:37 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Check existence of matrix-user-verification-service service
|
|
|
|
stat:
|
2023-02-06 16:20:13 +00:00
|
|
|
path: "{{ devture_systemd_docker_base_systemd_path }}/{{ matrix_user_verification_service_systemd_service_name }}"
|
2023-01-04 12:45:37 +00:00
|
|
|
register: matrix_user_verification_service_service_stat
|
|
|
|
|
2023-02-06 11:38:01 +00:00
|
|
|
- when: matrix_user_verification_service_service_stat.stat.exists | bool
|
|
|
|
block:
|
|
|
|
- name: Ensure matrix-user-verification-service is stopped
|
|
|
|
service:
|
|
|
|
name: "{{ matrix_user_verification_service_systemd_service_basename }}"
|
|
|
|
state: stopped
|
2023-02-06 15:29:25 +00:00
|
|
|
daemon_reload: true
|
2023-02-06 11:38:01 +00:00
|
|
|
register: stopping_result
|
2023-01-04 12:45:37 +00:00
|
|
|
|
2023-02-06 11:38:01 +00:00
|
|
|
- name: Ensure matrix-user-verification-service.service doesn't exist
|
|
|
|
file:
|
2023-02-06 16:20:13 +00:00
|
|
|
path: "{{ devture_systemd_docker_base_systemd_path }}/{{ matrix_user_verification_service_systemd_service_name }}"
|
2023-02-06 11:38:01 +00:00
|
|
|
state: absent
|
2023-01-04 12:45:37 +00:00
|
|
|
|
2023-02-06 11:38:01 +00:00
|
|
|
- name: Ensure Matrix user-verification-service paths don't exist
|
|
|
|
file:
|
|
|
|
path: "{{ matrix_user_verification_service_base_path }}"
|
|
|
|
state: absent
|