https://github.com/eendroroy/ansible-role-pyenv
https://github.com/eendroroy/ansible-role-pyenv
ansible-role pyenv
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/eendroroy/ansible-role-pyenv
- Owner: eendroroy
- License: mit
- Created: 2017-05-06T22:21:45.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-01-22T17:33:54.000Z (over 6 years ago)
- Last Synced: 2025-04-15T06:09:02.902Z (22 days ago)
- Topics: ansible-role, pyenv
- Language: Shell
- Homepage: https://galaxy.ansible.com/eendroroy/pyenv/
- Size: 47.9 KB
- Stars: 6
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible-role-pyenv
[](https://travis-ci.org/eendroroy/ansible-role-pyenv)
[](https://github.com/eendroroy/ansible-role-pyenv/tags)
[](https://github.com/eendroroy/ansible-role-pyenv/graphs/contributors)
[](https://github.com/eendroroy/ansible-role-pyenv)
[](https://github.com/eendroroy/ansible-role-pyenv/blob/master/LICENSE)
[](https://github.com/eendroroy/ansible-role-pyenv/issues)
[](https://github.com/eendroroy/ansible-role-pyenv/issues?q=is%3Aissue+is%3Aclosed)
[](https://github.com/eendroroy/ansible-role-pyenv/pulls)
[](https://github.com/eendroroy/ansible-role-pyenv/pulls?q=is%3Apr+is%3Aclosed)Ansible role to install pyenv
### Role Variables
Set `pyenv_env: system` to install pyenv system-wide, or `pyenv_env: local` for local installation.
Add plugins under `pyenv.plugins` var.
Define python versions to install under `pythons` var.
Example:
```yml
pyenv_env: systempyenv:
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) - xenial requires python2 to be installed for ansible support
- CentOS
- 6
- 7
- RHEL
- 6
- 7### Example Playbook
```yml
---
# Example playbook
- name: pyenv setup
hosts: servers
gather_facts: yestasks:
- include_role:
name: eendroroy.pyenv
vars:
pyenv_env: system
pythons:
- version: 2.7.14
- version: 3.6.5
```## Contributing
Bug reports and pull requests are welcome on GitHub at [ansible-role-pyenv](https://github.com/eendroroy/ansible-role-pyenv) repository.
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.## Author
* **indrajit** - *Owner* - [eendroroy](https://github.com/eendroroy)
## License
The project is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).