Fix repository removal task condition

This commit is contained in:
zenidd 2020-11-10 13:05:05 +01:00
parent 75f1669ca8
commit 0afaba51fc

View File

@ -5,7 +5,7 @@
repo: deb https://packages.wazuh.com/apt {{ ansible_distribution_release }} main repo: deb https://packages.wazuh.com/apt {{ ansible_distribution_release }} main
state: absent state: absent
changed_when: false 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) - name: RedHat/CentOS/Fedora | Remove Wazuh repository (and clean up left-over metadata)
yum_repository: yum_repository: