mirror of
				https://github.com/spantaleev/matrix-docker-ansible-deploy.git
				synced 2025-11-04 09:08:56 +01:00 
			
		
		
		
	This commit adds copyright attirbutions in SPDX format to files for matrix-dimension, following the REUSE's specification. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
		
			
				
	
	
		
			32 lines
		
	
	
		
			1009 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			1009 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
# SPDX-FileCopyrightText: 2020 - 2022 Slavi Pantaleev
 | 
						|
# SPDX-FileCopyrightText: 2022 Marko Weltzer
 | 
						|
# SPDX-FileCopyrightText: 2022 Sebastian Gumprich
 | 
						|
#
 | 
						|
# SPDX-License-Identifier: AGPL-3.0-or-later
 | 
						|
 | 
						|
---
 | 
						|
 | 
						|
- name: Check existence of matrix-dimension service
 | 
						|
  ansible.builtin.stat:
 | 
						|
    path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-dimension.service"
 | 
						|
  register: matrix_dimension_service_stat
 | 
						|
 | 
						|
- when: matrix_dimension_service_stat.stat.exists | bool
 | 
						|
  block:
 | 
						|
    - name: Ensure matrix-dimension is stopped
 | 
						|
      ansible.builtin.service:
 | 
						|
        name: matrix-dimension
 | 
						|
        state: stopped
 | 
						|
        enabled: false
 | 
						|
        daemon_reload: true
 | 
						|
 | 
						|
    - name: Ensure matrix-dimension.service doesn't exist
 | 
						|
      ansible.builtin.file:
 | 
						|
        path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-dimension.service"
 | 
						|
        state: absent
 | 
						|
 | 
						|
    - name: Ensure Dimension base directory doesn't exist
 | 
						|
      ansible.builtin.file:
 | 
						|
        path: "{{ matrix_dimension_base_path }}"
 | 
						|
        state: absent
 |