mirror of
				https://github.com/spantaleev/matrix-docker-ansible-deploy.git
				synced 2025-10-26 13:00:41 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| # SPDX-FileCopyrightText: 2023 Nikita Chernyi
 | |
| # SPDX-FileCopyrightText: 2024 Suguru Hirahara
 | |
| #
 | |
| # SPDX-License-Identifier: AGPL-3.0-or-later
 | |
| 
 | |
| ---
 | |
| 
 | |
| - name: Check existence of matrix-client-schildichat.service
 | |
|   ansible.builtin.stat:
 | |
|     path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-client-schildichat.service"
 | |
|   register: matrix_client_schildichat_service_stat
 | |
| 
 | |
| - when: matrix_client_schildichat_service_stat.stat.exists | bool
 | |
|   block:
 | |
|     - name: Ensure matrix-client-schildichat is stopped
 | |
|       ansible.builtin.service:
 | |
|         name: matrix-client-schildichat
 | |
|         state: stopped
 | |
|         enabled: false
 | |
|         daemon_reload: true
 | |
| 
 | |
|     - name: Ensure matrix-client-schildichat.service doesn't exist
 | |
|       ansible.builtin.file:
 | |
|         path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-client-schildichat.service"
 | |
|         state: absent
 | |
| 
 | |
|     - name: Ensure SchildiChat Web path doesn't exist
 | |
|       ansible.builtin.file:
 | |
|         path: "{{ matrix_client_schildichat_data_path }}"
 | |
|         state: absent
 |