eendroroy.pyenv
ansible-role-pyenv
Ansible role for installing pyenv
Role Variables
To install pyenv system-wide, set pyenv_env: system
, or use pyenv_env: local
for a local installation.
Use the pyenv.plugins
variable to add plugins.
Specify the Python versions you want to install in the pythons
variable.
Example:
pyenv_env: system
pyenv:
plugins:
- { name: pyenv-virtualenv, repo: 'https://github.com/pyenv/pyenv-virtualenv.git' }
pythons:
- version: 2.7.14
Supported OS
- Ubuntu
- precise (12.04)
- trusty (14.04)
- xenial (16.04) - needs python2 installed for Ansible
- CentOS
- 6
- 7
- RHEL
- 6
- 7
Example Playbook
---
# Example playbook
- name: pyenv setup
hosts: servers
gather_facts: yes
tasks:
- include_role:
name: eendroroy.pyenv
vars:
pyenv_env: system
pythons:
- version: 2.7.14
- version: 3.6.5
Contributing
You can submit bug reports and pull requests on GitHub at the ansible-role-pyenv repository. This project aims to be a friendly space for collaboration, and contributors should follow the Contributor Covenant code of conduct.
Author
- indrajit - Owner - eendroroy
License
This project is open source and available under the MIT License.
Installa
ansible-galaxy install eendroroy.pyenv
Licenza
mit
Download
391
Proprietario
Write code!