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

This commit adds copyright attirbutions in SPDX format to files for matrix-bot-chatgpt, following the REUSE's specification. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
31 lines
968 B
YAML
31 lines
968 B
YAML
# SPDX-FileCopyrightText: 2023 MDAD project contributors
|
|
# SPDX-FileCopyrightText: 2023 Slavi Pantaleev
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
---
|
|
|
|
- name: Check existence of matrix-chatgpt service
|
|
ansible.builtin.stat:
|
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-bot-chatgpt.service"
|
|
register: matrix_bot_chatgpt_service_stat
|
|
|
|
- when: matrix_bot_chatgpt_service_stat.stat.exists | bool
|
|
block:
|
|
- name: Ensure matrix-chatgpt is stopped
|
|
ansible.builtin.service:
|
|
name: matrix-bot-chatgpt
|
|
state: stopped
|
|
enabled: false
|
|
daemon_reload: true
|
|
|
|
- name: Ensure matrix-bot-chatgpt.service doesn't exist
|
|
ansible.builtin.file:
|
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-bot-chatgpt.service"
|
|
state: absent
|
|
|
|
- name: Ensure Matrix chatgpt paths don't exist
|
|
ansible.builtin.file:
|
|
path: "{{ matrix_bot_chatgpt_base_path }}"
|
|
state: absent
|