mirror of
				https://github.com/spantaleev/matrix-docker-ansible-deploy.git
				synced 2025-11-04 09:08:56 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			862 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			862 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
# SPDX-FileCopyrightText: 2020 - 2022 Slavi Pantaleev
 | 
						|
# SPDX-FileCopyrightText: 2020 Scott Crossen
 | 
						|
# SPDX-FileCopyrightText: 2022 Marko Weltzer
 | 
						|
#
 | 
						|
# SPDX-License-Identifier: AGPL-3.0-or-later
 | 
						|
 | 
						|
---
 | 
						|
 | 
						|
- name: Check existence of matrix-dynamic-dns service
 | 
						|
  ansible.builtin.stat:
 | 
						|
    path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-dynamic-dns.service"
 | 
						|
  register: matrix_dynamic_dns_service_stat
 | 
						|
 | 
						|
- when: matrix_dynamic_dns_service_stat.stat.exists | bool
 | 
						|
  block:
 | 
						|
    - name: Ensure matrix-dynamic-dns is stopped
 | 
						|
      ansible.builtin.service:
 | 
						|
        name: matrix-dynamic-dns
 | 
						|
        state: stopped
 | 
						|
        enabled: false
 | 
						|
        daemon_reload: true
 | 
						|
 | 
						|
    - name: Ensure matrix-dynamic-dns.service doesn't exist
 | 
						|
      ansible.builtin.file:
 | 
						|
        path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-dynamic-dns.service"
 | 
						|
        state: absent
 |