2022-08-22 19:10:35 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Check existence of matrix-postmoogle service
|
|
|
|
ansible.builtin.stat:
|
2024-10-31 09:33:46 +01:00
|
|
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-postmoogle.service"
|
|
|
|
register: matrix_postmoogle_service_stat
|
2022-08-22 19:10:35 +02:00
|
|
|
|
2024-10-31 09:33:46 +01:00
|
|
|
- when: matrix_postmoogle_service_stat.stat.exists | bool
|
2022-11-25 16:17:54 +01:00
|
|
|
block:
|
|
|
|
- name: Ensure matrix-postmoogle is stopped
|
|
|
|
ansible.builtin.service:
|
2024-10-31 09:33:46 +01:00
|
|
|
name: matrix-postmoogle
|
2022-11-25 16:17:54 +01:00
|
|
|
state: stopped
|
|
|
|
enabled: false
|
|
|
|
daemon_reload: true
|
2022-08-22 19:10:35 +02:00
|
|
|
|
2024-10-31 09:33:46 +01:00
|
|
|
- name: Ensure matrix-postmoogle.service doesn't exist
|
2022-11-25 16:17:54 +01:00
|
|
|
ansible.builtin.file:
|
2024-10-31 09:33:46 +01:00
|
|
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-postmoogle.service"
|
2022-11-25 16:17:54 +01:00
|
|
|
state: absent
|
2022-08-22 19:10:35 +02:00
|
|
|
|
2022-11-25 16:17:54 +01:00
|
|
|
- name: Ensure Matrix postmoogle paths don't exist
|
|
|
|
ansible.builtin.file:
|
2024-10-31 09:33:46 +01:00
|
|
|
path: "{{ matrix_postmoogle_base_path }}"
|
2022-11-25 16:17:54 +01:00
|
|
|
state: absent
|