mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2025-03-25 13:55:30 +01:00
32 lines
1.0 KiB
YAML
32 lines
1.0 KiB
YAML
|
# SPDX-FileCopyrightText: 2022 MDAD project contributors
|
||
|
# SPDX-FileCopyrightText: 2024 wjbeckett
|
||
|
# SPDX-FileCopyrightText: 2024 - 2025 Slavi Pantaleev
|
||
|
#
|
||
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||
|
|
||
|
---
|
||
|
|
||
|
- name: Check existence of matrix-element-call service
|
||
|
ansible.builtin.stat:
|
||
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-element-call.service"
|
||
|
register: matrix_element_call_service_stat
|
||
|
|
||
|
- when: matrix_element_call_service_stat.stat.exists | bool
|
||
|
block:
|
||
|
- name: Ensure matrix-element-call is stopped
|
||
|
ansible.builtin.service:
|
||
|
name: matrix-element-call
|
||
|
state: stopped
|
||
|
enabled: false
|
||
|
daemon_reload: true
|
||
|
|
||
|
- name: Ensure matrix-element-call.service doesn't exist
|
||
|
ansible.builtin.file:
|
||
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-element-call.service"
|
||
|
state: absent
|
||
|
|
||
|
- name: Ensure Element Call paths don't exist
|
||
|
ansible.builtin.file:
|
||
|
path: "{{ matrix_element_call_base_path }}"
|
||
|
state: absent
|