From c7596972c6a94cab603579c8a5cd0f89df054da6 Mon Sep 17 00:00:00 2001 From: Miguel Caballer Date: Wed, 29 Nov 2023 11:16:22 +0100 Subject: [PATCH] Fix install in RockyLinux 9 --- contextualization/conf-ansible.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/contextualization/conf-ansible.yml b/contextualization/conf-ansible.yml index 0a4a1f0c..1a354c77 100644 --- a/contextualization/conf-ansible.yml +++ b/contextualization/conf-ansible.yml @@ -120,18 +120,24 @@ ######################################### Use pip to enable to set the version ############################################# - # Version over 21 does not work with python 3.5 or older - - name: Upgrade pip in py3.5 + # Version over 21 does not work with python 3.6 or older + - name: Upgrade pip in py3.6-py3.10 pip: name: pip>18.0,<21.0 executable: pip3 when: ansible_python_version is version('3.7', '<') - - name: Upgrade pip in py3.6-py3.10 + - name: Upgrade pip in py3.7-py3.8 pip: name: pip>20.0 executable: pip3 - when: ansible_python_version is version('3.7', '>=') and ansible_python_version is version('3.11', '<') + when: ansible_python_version is version('3.7', '>=') and ansible_python_version is version('3.10', '<') + + - name: Upgrade pip in py3.9-py3.10 + pip: + name: pip>=22.0 + executable: pip3 + when: ansible_python_version is version('3.9', '>=') and ansible_python_version is version('3.11', '<') # Version 66 (#2497) fails - name: Upgrade setuptools with Pip in py3.11-