Install Python on Amazon Linux 2 or CentOS.
Written in Ansible 2.7.*
Available variables are listed below, along with default values (see defaults/main.yml
):
Python version, default is 2.7.9
.
easy_install
executable name, default is easy_install-2.7
.
pip
execuable name, default is pip2.7
.
python
executable name, default is python2.7
.
Additional installed Python packages, default are:
virtualenv
wheel
Packages to install when using yum, default are:
python27
python27-pip
Compile Python from source instead of using yum, default is false
.
juwai.common
- hosts: servers
roles:
- juwai.python27
MIT
This role was created in 2016 by Juwai Limited.