mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-12 08:43:55 +02:00
6913d368c8
Co-authored-by: Slavi Pantaleev <slavi@devture.com>
26 lines
941 B
YAML
26 lines
941 B
YAML
---
|
|
|
|
- name: Check existence of matrix-user-verification-service service
|
|
stat:
|
|
path: "{{ matrix_systemd_path }}/{{ matrix_user_verification_service_systemd_service_name }}"
|
|
register: matrix_user_verification_service_service_stat
|
|
|
|
- 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
|
|
daemon_reload: yes
|
|
register: stopping_result
|
|
|
|
- name: Ensure matrix-user-verification-service.service doesn't exist
|
|
file:
|
|
path: "{{ matrix_systemd_path }}/{{ matrix_user_verification_service_systemd_service_name }}"
|
|
state: absent
|
|
|
|
- name: Ensure Matrix user-verification-service paths don't exist
|
|
file:
|
|
path: "{{ matrix_user_verification_service_base_path }}"
|
|
state: absent
|