https://github.com/fubarhouse/ansible-role-python
Ansible role which provisions python and pip modules using pyenv
https://github.com/fubarhouse/ansible-role-python
ansible python
Last synced: 8 months ago
JSON representation
Ansible role which provisions python and pip modules using pyenv
- Host: GitHub
- URL: https://github.com/fubarhouse/ansible-role-python
- Owner: fubarhouse
- License: mit
- Created: 2015-09-17T10:31:58.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2018-07-26T10:02:22.000Z (almost 8 years ago)
- Last Synced: 2024-08-16T16:22:32.350Z (almost 2 years ago)
- Topics: ansible, python
- Homepage:
- Size: 168 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Role: Python
[](https://travis-ci.org/fubarhouse/ansible-role-python)
[](https://github.com/orangemug/stability-badges)
[](https://galaxy.ansible.com/fubarhouse/python)
[](https://raw.githubusercontent.com/fubarhouse/ansible-role-hub/master/LICENSE)
* 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](https://twitter.com/fubarhouse).