mirror of
				https://github.com/spantaleev/matrix-docker-ansible-deploy.git
				synced 2025-11-04 09:08:56 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			872 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			872 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
# SPDX-FileCopyrightText: 2021 - 2022 Slavi Pantaleev
 | 
						|
# SPDX-FileCopyrightText: 2021 Matthew Cengia
 | 
						|
# SPDX-FileCopyrightText: 2022 Marko Weltzer
 | 
						|
#
 | 
						|
# SPDX-License-Identifier: AGPL-3.0-or-later
 | 
						|
 | 
						|
---
 | 
						|
 | 
						|
- name: Check existence of matrix-mautrix-twitter service
 | 
						|
  ansible.builtin.stat:
 | 
						|
    path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-mautrix-twitter.service"
 | 
						|
  register: matrix_mautrix_twitter_service_stat
 | 
						|
 | 
						|
- when: matrix_mautrix_twitter_service_stat.stat.exists | bool
 | 
						|
  block:
 | 
						|
    - name: Ensure matrix-mautrix-twitter is stopped
 | 
						|
      ansible.builtin.service:
 | 
						|
        name: matrix-mautrix-twitter
 | 
						|
        state: stopped
 | 
						|
        daemon_reload: true
 | 
						|
 | 
						|
    - name: Ensure matrix-mautrix-twitter.service doesn't exist
 | 
						|
      ansible.builtin.file:
 | 
						|
        path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-mautrix-twitter.service"
 | 
						|
        state: absent
 |