mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2025-03-04 13:06:13 +00:00

As the future for the MX bridges in this playbook and by themselves seems uncertain, this commit adds license information in SPDX format to the files for those bridges, before the bridges would be deprecated and possibly get removed from the project. Please note that .license files are added for the files which would be broken if such information are added as header, following the REUSE's specification. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
27 lines
858 B
YAML
27 lines
858 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-discord service
|
|
ansible.builtin.stat:
|
|
path: "/etc/systemd/system/matrix-mx-puppet-discord.service"
|
|
register: matrix_mx_puppet_discord_service_stat
|
|
|
|
- when: matrix_mx_puppet_discord_service_stat.stat.exists | bool
|
|
block:
|
|
- name: Ensure matrix-mx-puppet-discord is stopped
|
|
ansible.builtin.service:
|
|
name: matrix-mx-puppet-discord
|
|
state: stopped
|
|
enabled: false
|
|
daemon_reload: true
|
|
|
|
- name: Ensure matrix-mx-puppet-discord.service doesn't exist
|
|
ansible.builtin.file:
|
|
path: "/etc/systemd/system/matrix-mx-puppet-discord.service"
|
|
state: absent
|