Merge "Install Python38 on CentOS-8"

This commit is contained in:
Zuul 2022-06-10 10:22:51 +00:00 committed by Gerrit Code Review
commit d49b5b1345
2 changed files with 17 additions and 12 deletions

View File

@ -52,18 +52,6 @@
become: true
when: ansible_distribution|lower == "redhat"
- 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,6 +56,23 @@
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'