juwai.python27

Ansible Role: Python27

This role installs Python on Amazon Linux 2 or CentOS.

Requirements

Works with Ansible version 2.7.*

Role Variables

Here are the available settings and their default values (see defaults/main.yml):

py_version

Python version, default is 2.7.9.

executable_easy_install

Name for the easy_install tool, default is easy_install-2.7.

executable_pip

Name for the pip tool, default is pip2.7.

executable_python

Name for the Python executable, default is python2.7.

python_packages

Extra Python packages to install, default includes:

  • virtualenv
  • wheel

python_packages_yum

Packages to install using yum, default includes:

  • python27
  • python27-pip

python_force_compile

Whether to compile Python from source instead of using yum, default is false.

Dependencies

  • juwai.common

Example Playbook

- hosts: servers
  roles:
    - juwai.python27

License

MIT License

Author Information

This role was created in 2016 by Juwai Limited.

Informazioni sul progetto

Ansible role for installing Python

Installa
ansible-galaxy install juwai.python27
Licenza
mit
Download
2.9k
Proprietario
Where Chinese find international property