mirror of
				https://github.com/spantaleev/matrix-docker-ansible-deploy.git
				synced 2025-11-04 00:58:56 +01:00 
			
		
		
		
	This commit adds copyright attributions in SPDX format to the files for matrix-bridge-wechat following REUSE's specification. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
		
			
				
	
	
		
			44 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
# SPDX-FileCopyrightText: 2024 - 2025 Slavi Pantaleev
 | 
						|
#
 | 
						|
# SPDX-License-Identifier: AGPL-3.0-or-later
 | 
						|
 | 
						|
---
 | 
						|
 | 
						|
- name: Check existence of matrix-wechat service
 | 
						|
  ansible.builtin.stat:
 | 
						|
    path: "/etc/systemd/system/matrix-wechat.service"
 | 
						|
  register: matrix_wechat_service_stat
 | 
						|
 | 
						|
- when: matrix_wechat_service_stat.stat.exists | bool
 | 
						|
  block:
 | 
						|
    - name: Ensure matrix-wechat is stopped
 | 
						|
      ansible.builtin.service:
 | 
						|
        name: matrix-wechat
 | 
						|
        state: stopped
 | 
						|
        enabled: false
 | 
						|
        daemon_reload: true
 | 
						|
 | 
						|
    - name: Ensure matrix-wechat.service doesn't exist
 | 
						|
      ansible.builtin.file:
 | 
						|
        path: "/etc/systemd/system/matrix-wechat.service"
 | 
						|
        state: absent
 | 
						|
 | 
						|
- name: Check existence of matrix-wechat-agent service
 | 
						|
  ansible.builtin.stat:
 | 
						|
    path: "/etc/systemd/system/matrix-wechat-agent.service"
 | 
						|
  register: matrix_wechat_agent_service_stat
 | 
						|
 | 
						|
- when: matrix_wechat_agent_service_stat.stat.exists | bool
 | 
						|
  block:
 | 
						|
    - name: Ensure matrix-wechat-agent is stopped
 | 
						|
      ansible.builtin.service:
 | 
						|
        name: matrix-wechat-agent
 | 
						|
        state: stopped
 | 
						|
        enabled: false
 | 
						|
        daemon_reload: true
 | 
						|
 | 
						|
    - name: Ensure matrix-wechat-agent.service doesn't exist
 | 
						|
      ansible.builtin.file:
 | 
						|
        path: "/etc/systemd/system/matrix-wechat-agent.service"
 | 
						|
        state: absent
 |