From 6d1d4105f33d0b7e9a2e8b47163e1495a6bd0b4e Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Mon, 17 Feb 2025 16:30:52 -0600 Subject: [PATCH] pip-install - always uninstall deb and repo if present --- roles/kolibri/tasks/pip-install.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/kolibri/tasks/pip-install.yml b/roles/kolibri/tasks/pip-install.yml index c6362c52b..cb5ac62d4 100644 --- a/roles/kolibri/tasks/pip-install.yml +++ b/roles/kolibri/tasks/pip-install.yml @@ -1,3 +1,13 @@ +- name: Remove kolibre deb if installed + apt: + name: kolibri + state: "absent" + +- name: Remove repo if present + file: + path: /etc/apt/sources.list.d/ppa_launchpad_net_learningequality_kolibri_ubuntu.list + state: absent + - name: Remove previous virtual environment {{ kolibri_venv_path }} file: path: "{{ kolibri_venv_path }}"