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.
41 lines
1.2 KiB
41 lines
1.2 KiB
3 years ago
|
---
|
||
|
|
||
6 years ago
|
- name: Check existence of matrix-synapse service
|
||
2 years ago
|
ansible.builtin.stat:
|
||
5 years ago
|
path: "{{ matrix_systemd_path }}/matrix-synapse.service"
|
||
6 years ago
|
register: matrix_synapse_service_stat
|
||
|
|
||
|
- name: Ensure matrix-synapse is stopped
|
||
2 years ago
|
ansible.builtin.service:
|
||
6 years ago
|
name: matrix-synapse
|
||
|
state: stopped
|
||
3 years ago
|
enabled: false
|
||
|
daemon_reload: true
|
||
6 years ago
|
register: stopping_result
|
||
|
when: "matrix_synapse_service_stat.stat.exists"
|
||
|
|
||
|
- name: Ensure matrix-synapse.service doesn't exist
|
||
2 years ago
|
ansible.builtin.file:
|
||
5 years ago
|
path: "{{ matrix_systemd_path }}/matrix-synapse.service"
|
||
6 years ago
|
state: absent
|
||
|
when: "matrix_synapse_service_stat.stat.exists"
|
||
|
|
||
|
- name: Ensure systemd reloaded after matrix-synapse.service removal
|
||
2 years ago
|
ansible.builtin.service:
|
||
3 years ago
|
daemon_reload: true
|
||
6 years ago
|
when: "matrix_synapse_service_stat.stat.exists"
|
||
|
|
||
|
- name: Ensure Synapse Docker image doesn't exist
|
||
2 years ago
|
community.docker.docker_image:
|
||
2 years ago
|
name: "{{ item }}"
|
||
6 years ago
|
state: absent
|
||
2 years ago
|
with_items:
|
||
|
- "{{ matrix_synapse_docker_image_final }}"
|
||
|
- "{{ matrix_synapse_docker_image }}"
|
||
2 years ago
|
|
||
|
- name: Ensure sample prometheus.yml for external scraping is deleted
|
||
2 years ago
|
ansible.builtin.file:
|
||
2 years ago
|
path: "{{ matrix_synapse_base_path }}/external_prometheus.yml.example"
|
||
|
state: absent
|
||
2 years ago
|
when: "not matrix_synapse_metrics_proxying_enabled | bool"
|