Installs Python from sources with dependencies such as ssl, tk, readline, zlib, etc.
It downloads the sources at /opt/sources/python/
and it installs at /opt/software/python/
.
---
# Version to install
py_version: 3.7.0
# Dependencies
py_apt_deps:
- build-essential
- libssl-dev
- libreadline-dev
- libsqlite3-dev
- libtinfo-dev
- zlib1g-dev
- tcl-dev
- tk-dev
- blt-dev
- libffi-dev
- libbz2-dev
Add hectormartinezdev.python
to your dependencies and your playbooks.
---
- hosts: all
vars:
py_version: 3.7.0
roles:
- hectormartinezdev.python
MIT
Hector Martinez Lopez