From c9281482614255bf7d2f9571d30c10338e709ffb Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Sun, 27 Nov 2022 09:43:25 +0200 Subject: [PATCH] Make uninstall tasks for Synapse delete bin/ --- .../matrix-synapse/tasks/synapse/setup_uninstall.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/roles/custom/matrix-synapse/tasks/synapse/setup_uninstall.yml b/roles/custom/matrix-synapse/tasks/synapse/setup_uninstall.yml index 7f0815224..6b8ae5a01 100644 --- a/roles/custom/matrix-synapse/tasks/synapse/setup_uninstall.yml +++ b/roles/custom/matrix-synapse/tasks/synapse/setup_uninstall.yml @@ -14,10 +14,13 @@ enabled: false daemon_reload: true - - name: Ensure matrix-synapse.service doesn't exist + - name: Ensure Synapse paths don't exist ansible.builtin.file: - path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-synapse.service" + path: "{{ item }}" state: absent + with_items: + - "{{ devture_systemd_docker_base_systemd_path }}/matrix-synapse.service" + - "{{ matrix_synapse_bin_path }}" - name: Ensure sample prometheus.yml for external scraping is deleted ansible.builtin.file: