ansible-role-python

Ansible role which provisions python and pip modules using pyenv

MIT License

Stars
7

Ansible Role: Python

  • PyEnv on CentOS/Darwin/Debian/RedHat servers.
  • Installs multiple python versions as required.
  • Installs a virtualenv for a specified version of Python.
  • Installs PIP packages

Requirements

None.

Role Variables

Default Python version

python_version: 2.7.15

All Python versions to install

python_versions:
- 2.7.15
- 3.5.1

Python packages to download

python_packages:
- pyyaml
- jinja2
- virtualenv
- pyasn1
- Django

List of all virtualenvs to install

Note: If this is not specified, the variable python_version will be allocated to this array.

virtualenvs:
- name: "Global-2.7.15"
  version: 2.7.15

Virtualenvs to use as the global python system

Note: If this is not specified, the variable python_version will be allocated to this variable.

virtualenv: 2.7.15

Dependencies

None.

Example Playbook

- hosts: localhost
  roles:
    - fubarhouse.python

Installation

  • Install using ansible-galaxy install fubarhouse.python
  • Add the Python role to your playbook.
  • Modify above variables as desired.

License

MIT / BSD

Author Information

This role was created in 2015 by Karl Hepworth.

Badges
Extracted from project README
Build Status stability-stable Ansible Galaxy MIT licensed