Skip to content
Snippets Groups Projects
Commit 413ca22a authored by Georg Krause's avatar Georg Krause
Browse files

fix: Put a fallback ansible path in place

In the past we installed ansible using pip install --user, however since
Debian 12/Python 3.11 encourage us rightly not do this, we migrate to a
custom venv. However, old installations don't have this, so we fall back
to the old path.
parent b81521ca
No related branches found
No related tags found
Loading
Pipeline #32069 passed with stage
in 8 minutes and 8 seconds
......@@ -49,6 +49,9 @@ yesno_prompt() {
}
do_upgrade() {
if [ ! -f "$ansible_bin_path/ansible" ]; then
ansible_bin_path="$HOME/.local/bin"
fi
echo '[Beginning upgrade]'
playbook_path="$ansible_conf_path/playbook.yml"
echo "[1/$total_steps] Retrieving currently installed version from $playbook_path"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment