mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-07-17 04:03:34 +03:00
e3faabf125
Part of adopting a uniform naming policy for bridge variables, where the variable prefix matches the role directory name. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
# SPDX-FileCopyrightText: 2024 - 2025 Slavi Pantaleev
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
---
|
|
|
|
- name: Check existence of matrix-wechat service
|
|
ansible.builtin.stat:
|
|
path: "/etc/systemd/system/matrix-wechat.service"
|
|
register: matrix_bridge_wechat_service_stat
|
|
|
|
- when: matrix_bridge_wechat_service_stat.stat.exists | bool
|
|
block:
|
|
- name: Ensure matrix-wechat is stopped
|
|
ansible.builtin.service:
|
|
name: matrix-wechat
|
|
state: stopped
|
|
enabled: false
|
|
daemon_reload: true
|
|
|
|
- name: Ensure matrix-wechat.service doesn't exist
|
|
ansible.builtin.file:
|
|
path: "/etc/systemd/system/matrix-wechat.service"
|
|
state: absent
|
|
|
|
- name: Check existence of matrix-wechat-agent service
|
|
ansible.builtin.stat:
|
|
path: "/etc/systemd/system/matrix-wechat-agent.service"
|
|
register: matrix_bridge_wechat_agent_service_stat
|
|
|
|
- when: matrix_bridge_wechat_agent_service_stat.stat.exists | bool
|
|
block:
|
|
- name: Ensure matrix-wechat-agent is stopped
|
|
ansible.builtin.service:
|
|
name: matrix-wechat-agent
|
|
state: stopped
|
|
enabled: false
|
|
daemon_reload: true
|
|
|
|
- name: Ensure matrix-wechat-agent.service doesn't exist
|
|
ansible.builtin.file:
|
|
path: "/etc/systemd/system/matrix-wechat-agent.service"
|
|
state: absent
|