From 0afaba51fc52ad09ab04463d86e1f62c580f9356 Mon Sep 17 00:00:00 2001 From: zenidd Date: Tue, 10 Nov 2020 13:05:05 +0100 Subject: [PATCH] Fix repository removal task condition --- roles/wazuh/ansible-wazuh-manager/tasks/uninstall.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/wazuh/ansible-wazuh-manager/tasks/uninstall.yml b/roles/wazuh/ansible-wazuh-manager/tasks/uninstall.yml index b74f61a4..0ab111f2 100644 --- a/roles/wazuh/ansible-wazuh-manager/tasks/uninstall.yml +++ b/roles/wazuh/ansible-wazuh-manager/tasks/uninstall.yml @@ -5,7 +5,7 @@ repo: deb https://packages.wazuh.com/apt {{ ansible_distribution_release }} main state: absent changed_when: false - when: not wazuh_manager_sources_installation.enabled + when: ansible_os_family == "Debian" - name: RedHat/CentOS/Fedora | Remove Wazuh repository (and clean up left-over metadata) yum_repository: