fubarhouse.python
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.
Install
ansible-galaxy install fubarhouse.pythonLicense
mit
Downloads
416
Owner
I love open source, and computers - both hardware and software. Privacy advocate. Any opinions outside of official communications and representation are my own.
