mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-07-16 19:53:53 +03:00
97077e2f13
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>
26 lines
866 B
YAML
26 lines
866 B
YAML
# SPDX-FileCopyrightText: 2025 - 2026 luschmar
|
|
# SPDX-FileCopyrightText: 2026 Slavi Pantaleev
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
---
|
|
|
|
- name: Check existence of matrix-meshtastic-relay service
|
|
ansible.builtin.stat:
|
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-meshtastic-relay.service"
|
|
register: matrix_bridge_meshtastic_relay_service_stat
|
|
|
|
- when: matrix_bridge_meshtastic_relay_service_stat.stat.exists | bool
|
|
block:
|
|
- name: Ensure matrix-meshtastic-relay is stopped
|
|
ansible.builtin.service:
|
|
name: matrix-meshtastic-relay
|
|
state: stopped
|
|
enabled: false
|
|
daemon_reload: true
|
|
|
|
- name: Ensure matrix-meshtastic-relay.service doesn't exist
|
|
ansible.builtin.file:
|
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-meshtastic-relay.service"
|
|
state: absent
|