Skip to content

eendroroy/ansible-role-rbenv

Repository files navigation

rbenv

Build Status

Contributors GitHub last commit (branch) license GitHub issues GitHub closed issues GitHub pull requests GitHub closed pull requests

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:

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:

vagrant up

Then execute the test runner script:

./run_vagrant_test.sh

Contributing

Bug reports and pull requests are welcome on GitHub at 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 code of conduct.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details