From 1bec10f874b51b4535d2508bd25620e72f6dfca3 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Mon, 17 Feb 2025 16:03:54 -0600 Subject: [PATCH] Needs discussion --- roles/kolibri/tasks/install.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/roles/kolibri/tasks/install.yml b/roles/kolibri/tasks/install.yml index 026088eb4..0d7887207 100644 --- a/roles/kolibri/tasks/install.yml +++ b/roles/kolibri/tasks/install.yml @@ -77,6 +77,13 @@ state: absent path: "{{ kolibri_exec_path }}" when: sym.stat.islnk is defined and sym.stat.islnk + + # should not get here if the deb was uninstalled in pip-install.yml + - name: Remove kolibre deb if installed + apt: + name: kolibri + state: "absent" + when: sym.stat.islnk is defined and sym.stat.islnk # end test - name: Remove virtual environment {{ kolibri_venv_path }} if present @@ -146,6 +153,12 @@ # codename: focal # UPDATE THIS TO 'jammy' AFTER "RasPiOS Bookworm" (based on Debian 12) IS RELEASED! (ETA Q3 2023) # when: is_debian or is_linuxmint_20 +# Needs discussiion +# --reinstalls should work uninstall then install +# - name: Remove kolibre deb if installed +# apt: +# name: kolibri +# state: "absent" # 2024-08-07: Hack no longer needed! As Kolibri 0.17.0 now installs via "kolibri" PPA (https://launchpad.net/~learningequality/+archive/ubuntu/kolibri). # Hopefully "kolibri-proposed" PPA will install 0.18 pre-releases soon, on Python 3.13 too! https://github.com/learningequality/kolibri/issues/11892