Merge "Revert "Install Python38 on CentOS-8""

This commit is contained in:
Zuul 2022-06-17 15:45:28 +00:00 committed by Gerrit Code Review
commit 4aa89de544
2 changed files with 12 additions and 17 deletions

View File

@ -75,6 +75,18 @@
fi
done
- name: Install python3-devel
package:
name: python3-devel # required for python-tripleoclient pip install
state: present
become: true
- name: Install python-tripleoclient for Image build
package:
name: "python*-tripleoclient"
state: present
become: true
- name: Generate build-images.sh script
template:
src: templates/build-images.sh.j2

View File

@ -56,23 +56,6 @@
become: true
when: python_v == "py2"
- name: Use Python38 for EL8
when: ansible_distribution_major_version is version(8, '==')
become: true
block:
- name: Install Python38 for CentOS-8
package:
name: "{{ item }}"
state: present
with_items:
- python38
- python38-devel
- name: Set virtualenv_python for Python38
set_fact:
ensure_pip_virtualenv_command: "/usr/bin/python3.8 -m venv"
cacheable: true
- name: Ensure a recent version of pip is installed
pip:
extra_args: '--upgrade'