diff --git a/tasks/setupacdc.yml b/tasks/setupacdc.yml index 99fee3e..66ee975 100644 --- a/tasks/setupacdc.yml +++ b/tasks/setupacdc.yml @@ -9,7 +9,7 @@ ansible.builtin.package: # Use the appropriate package name based on the distribution name: "{{ __pip_package_name }}" - state: present + state: absent vars: __pip_package_name: "{% if ansible_os_family == 'Debian' %}python3-pip{% elif ansible_os_family == 'RedHat' %}python3-pip{% elif ansible_os_family == 'Suse' %}python3-pip{% else %}python3-pip{% endif %}" # Ensure the package manager cache is updated before installation, especially on Debian/Ubuntu