Files
matrix-docker-ansible-deploy/roles/custom/matrix-bridge-mx-puppet-steam/tasks/setup_uninstall.yml
T
Slavi Pantaleev ceb178008f Rename matrix_mx_puppet_steam_* variables to matrix_bridge_mx_puppet_steam_*
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>
2026-07-16 16:12:14 +03:00

27 lines
856 B
YAML

# SPDX-FileCopyrightText: 2020 Hugues Morisset
# SPDX-FileCopyrightText: 2021 - 2022 Slavi Pantaleev
# SPDX-FileCopyrightText: 2022 Marko Weltzer
#
# SPDX-License-Identifier: AGPL-3.0-or-later
---
- name: Check existence of matrix-mx-puppet-steam service
ansible.builtin.stat:
path: "/etc/systemd/system/matrix-mx-puppet-steam.service"
register: matrix_bridge_mx_puppet_steam_service_stat
- when: matrix_bridge_mx_puppet_steam_service_stat.stat.exists | bool
block:
- name: Ensure matrix-mx-puppet-steam is stopped
ansible.builtin.service:
name: matrix-mx-puppet-steam
state: stopped
enabled: false
daemon_reload: true
- name: Ensure matrix-mx-puppet-steam.service doesn't exist
ansible.builtin.file:
path: "/etc/systemd/system/matrix-mx-puppet-steam.service"
state: absent