Enable rhel-7-server-optional-rpms repo

This allows to install 'python3-devel' package removing
therefore the need for compiling python on RHEL-7

Change-Id: I103f5d52fee4f54dba03588b469da3bae66e714d
This commit is contained in:
Federico Ressi 2020-06-05 10:41:08 +02:00
parent fbe2ccb630
commit 12db48915f
4 changed files with 26 additions and 3 deletions

View File

@ -17,4 +17,5 @@ python_command: 'python{{ python_version }}'
python_packages: {}
python_info: {}
enable_yum_repos: []
compile_python3: no

View File

@ -1,5 +1,12 @@
---
- name: "enable yum repos"
become: yes
command:
yum-config-manager --enable '{{ item }}'
loop: '{{ enable_yum_repos }}'
- name: "install '{{ python_command }}' packages"
become: '{{ test_become | bool }}'
package:

View File

@ -0,0 +1,9 @@
---
python_packages:
python3:
- python3
- python3-devel
python3.6:
- python36
- python36-devel

View File

@ -1,6 +1,12 @@
---
compile_python3: yes
enable_yum_repos:
- rhel-7-server-optional-rpms
python_release: "3.7.7"
python_command: "python3.7"
python_packages:
python3:
- python3
- python3-devel
python3.6:
- python36
- python36-devel