From 5efeab72f3cf4fcf525aafcd9a0d0c96ffae8166 Mon Sep 17 00:00:00 2001 From: Xavier Pillons Date: Wed, 11 Oct 2023 14:49:22 +0200 Subject: [PATCH] upgrade python and PIP dependencies (#1732) --- playbooks/roles/cyclecloud/tasks/AlmaLinux.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/playbooks/roles/cyclecloud/tasks/AlmaLinux.yml b/playbooks/roles/cyclecloud/tasks/AlmaLinux.yml index 72a91b017..4e0c96a2e 100644 --- a/playbooks/roles/cyclecloud/tasks/AlmaLinux.yml +++ b/playbooks/roles/cyclecloud/tasks/AlmaLinux.yml @@ -37,10 +37,17 @@ - name: Install pre-reqs packages yum: - name: azure-cli, dnsmasq, unzip, java + name: azure-cli, dnsmasq, unzip, java, python39, python39-pip state: present lock_timeout : 180 +- name: Upgrade PIP + shell: | + set -e + alternatives --set python /usr/bin/python3.9 + alternatives --set python3 /usr/bin/python3.9 + python3 -m pip install --upgrade pip + - name: Install CycleCloud yum: name: "cyclecloud8-{{cyclecloud_version}}"