9cf069dbb0
Because upstream OpenStack requirements master branch (Victoria) removed any support for Python 2.7 upstream jobs started failing. We where only using Python 2 because infrared installation process fails on RHEL/CentOS 7 and Python 3 due to lacking SE Linux Python bindings. This workaround this issue by removing support for Python 2.7 and CentOS/RHEL 7. The support for CentOS 7 could be restored once the IR issue has been fixed. Change-Id: I09d2577a0e5cb4c7efbb6863294f63b2dd88de0a
26 lines
558 B
YAML
26 lines
558 B
YAML
---
|
|
|
|
- name: "include platform variables"
|
|
include_tasks: platform.yaml
|
|
when:
|
|
- python_platform is not defined
|
|
|
|
|
|
- name: "validate Python version: {{ python_version }}"
|
|
assert:
|
|
that:
|
|
- (python_version | string).split(".") | length >= 1
|
|
- (python_version | string).split(".") | length <= 2
|
|
- (python_version | string).split(".")[0] == '3'
|
|
|
|
|
|
- include_tasks: constraints.yaml
|
|
|
|
|
|
- include_tasks: install.yaml
|
|
|
|
|
|
- name: "set python_executable fact"
|
|
set_fact:
|
|
python_executable: '{{ python_info[python_command].executable }}'
|