https://github.com/eendroroy/ansible-role-rbenv
https://github.com/eendroroy/ansible-role-rbenv
ansible-role rbenv
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/eendroroy/ansible-role-rbenv
- Owner: eendroroy
- License: mit
- Created: 2017-05-06T19:46:56.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-02T17:11:15.000Z (over 7 years ago)
- Last Synced: 2025-07-07T06:04:42.623Z (about 1 year ago)
- Topics: ansible-role, rbenv
- Language: Shell
- Homepage: https://galaxy.ansible.com/eendroroy/rbenv/
- Size: 60.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rbenv
[](https://travis-ci.org/eendroroy/ansible-role-rbenv)
[](https://github.com/eendroroy/ansible-role-rbenv/graphs/contributors)
[](https://github.com/eendroroy/ansible-role-rbenv)
[](https://github.com/eendroroy/ansible-role-rbenv/blob/master/LICENSE)
[](https://github.com/eendroroy/ansible-role-rbenv/issues)
[](https://github.com/eendroroy/ansible-role-rbenv/issues?q=is%3Aissue+is%3Aclosed)
[](https://github.com/eendroroy/ansible-role-rbenv/pulls)
[](https://github.com/eendroroy/ansible-role-rbenv/pulls?q=is%3Apr+is%3Aclosed)
Ansible role to install rbenv
## Role Variables
Set `rbenv_env: system` to install rbenv system-wide, or `rbenv_env: local` for local installation.
Add plugins under `rbenv.plugins` var.
Define ruby versions to install under `rubies` var.
Example:
```yml
rbenv_env: system
rbenv:
plugins:
- { name: ruby-default-gems, repo: 'https://github.com/rbenv/ruby-default-gems.git' }
rubies:
- version: 2.5.0
```
## Supported OS
- Ubuntu
- trusty (14.04)
- xenial (16.04) - xenial requires python2 to be installed for ansible support
- CentOS
- 7
- RHEL
- 7
## Example Playbook
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: eendroroy.rbenv, rbenv_env: system }
## Testing locally
First run the vagrant machines:
```bash
vagrant up
```
Then execute the test runner script:
```bash
./run_vagrant_test.sh
```
## Contributing
Bug reports and pull requests are welcome on GitHub at [ansible-role-rbenv](https://github.com/eendroroy/ansible-role-rbenv) 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.
## Authors
* **Indrajit Roy** - *Owner* - [eendroroy](https://github.com/eendroroy)
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details