Python3 role for ansible. This supports multiple python versions thanks to pythonz.
None
python_versions
: List of valid python 3 versions to install.virtualenvs
: Dict of virtual environment to create. With keys:path
: Virtual environment directoryversion
: Virtual environment python versionrequirements
: Requirements.txt file to install
pythonz_repo
: Git url to the pythonz repository (default to: https://github.com/saghul/pythonz.git)pythonz_version
: Version of pythonz to download (default to: master)
None
- role: pyslackers.python
python_versions:
- "3.6.2"
- "3.6.3"
virtualenvs:
env_1:
path: /opt/env_1
version: "3.6.1"
requirements: requirements.txt
env_2:
path: /opt/env_2
version: "3.6.2"
MIT
None