Suguru Hirahara 807da74334
Add license information to files for MX bridges
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>
2025-02-23 13:33:30 +09:00

27 lines
855 B
YAML

# SPDX-FileCopyrightText: 2020 Tulir Asokan
# 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-twitter service
ansible.builtin.stat:
path: "/etc/systemd/system/matrix-mx-puppet-twitter.service"
register: matrix_mx_puppet_twitter_service_stat
- when: matrix_mx_puppet_twitter_service_stat.stat.exists | bool
block:
- name: Ensure matrix-mx-puppet-twitter is stopped
ansible.builtin.service:
name: matrix-mx-puppet-twitter
state: stopped
enabled: false
daemon_reload: true
- name: Ensure matrix-mx-puppet-twitter.service doesn't exist
ansible.builtin.file:
path: "/etc/systemd/system/matrix-mx-puppet-twitter.service"
state: absent