You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
933 B
31 lines
933 B
3 years ago
|
---
|
||
|
|
||
4 years ago
|
- name: Check existence of matrix-dendrite service
|
||
2 years ago
|
ansible.builtin.stat:
|
||
4 years ago
|
path: "{{ matrix_systemd_path }}/matrix-dendrite.service"
|
||
|
register: matrix_dendrite_service_stat
|
||
|
|
||
|
- name: Ensure matrix-dendrite is stopped
|
||
2 years ago
|
ansible.builtin.service:
|
||
4 years ago
|
name: matrix-dendrite
|
||
|
state: stopped
|
||
3 years ago
|
daemon_reload: true
|
||
4 years ago
|
register: stopping_result
|
||
|
when: "matrix_dendrite_service_stat.stat.exists"
|
||
|
|
||
|
- name: Ensure matrix-dendrite.service doesn't exist
|
||
2 years ago
|
ansible.builtin.file:
|
||
4 years ago
|
path: "{{ matrix_systemd_path }}/matrix-dendrite.service"
|
||
|
state: absent
|
||
|
when: "matrix_dendrite_service_stat.stat.exists"
|
||
|
|
||
|
- name: Ensure systemd reloaded after matrix-dendrite.service removal
|
||
2 years ago
|
ansible.builtin.service:
|
||
3 years ago
|
daemon_reload: true
|
||
4 years ago
|
when: "matrix_dendrite_service_stat.stat.exists"
|
||
|
|
||
|
- name: Ensure Dendrite Docker image doesn't exist
|
||
2 years ago
|
community.docker.docker_image:
|
||
4 years ago
|
name: "{{ matrix_dendrite_docker_image }}"
|
||
|
state: absent
|