e71d0d2607
In order to install particular python versions on distros that don't otherwise have them, add an option for installing via pyenv. The packages to be installed to allow for Python to be built were tested on the official Docker containers so they should provide a fair amount of coverage from a minimal environment. Co-Authored-By: Mohammed Naser <mnaser@vexxhost.com> Change-Id: Ic3312458b499a4b743895fa5829bb25155f77654
13 lines
368 B
YAML
13 lines
368 B
YAML
- hosts: all
|
|
tasks:
|
|
- name: Include ensure-python role
|
|
include_role:
|
|
name: ensure-python
|
|
vars:
|
|
python_use_pyenv: true
|
|
python_version: 3.8
|
|
|
|
- name: Check installed version of Python
|
|
command: /usr/local/bin/python3 --version
|
|
register: _check_version
|
|
failed_when: "'Python 3.8' not in _check_version.stdout" |