Fix installation of py27 on CentOS 7/8
Some projects (such as pyeclib) might want to run openstack-tox-py27 with a centos-7 nodeset. Change-Id: If636f5350021d8733a8ecc52c71626aa3d601064
This commit is contained in:
parent
575b517ba4
commit
7d3ab66ee0
@ -17,3 +17,18 @@
|
||||
- python
|
||||
- python-dev
|
||||
state: present
|
||||
when: ansible_facts['distribution'] != "CentOS"
|
||||
- name: Install Python 2.7 for CentOS 7
|
||||
package:
|
||||
name:
|
||||
- python
|
||||
- python-devel
|
||||
state: present
|
||||
when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "7")
|
||||
- name: Install Python 2.7 for CentOS 8
|
||||
package:
|
||||
name:
|
||||
- python2
|
||||
- python2-devel
|
||||
state: present
|
||||
when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "8")
|
||||
|
Loading…
Reference in New Issue
Block a user