tobiko/roles/tobiko-ensure-python3/tasks/ensure-python3.yaml
Federico Ressi 03b9eec659 Use local upper-constraints.txt
- Remove support for constrains file from infrared plugin
- Use file stored on tobiko repository by default

Change-Id: I0f835d753fb9d3a1670e8eb9b196e02e989d4262
2021-10-27 14:33:56 +02:00

23 lines
522 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: install.yaml
- name: "set python_executable fact"
set_fact:
python_executable: '{{ python_info[python_command].executable }}'