This playbook will install rbenv in a user's home directory. You can then leverage rbenv to install rubies for this user.
None
ruby_deploy_user
: target user for rbenv installation; required; no defaultrbenv_makeopts
: Make options when building a ruby version; optional; default: -j2
- rbenv
- ruby
- ruby:install
- erasme.ruby-compiled
This is mainly used as a dependency in combination with the erasme.ruby role, like :
dependencies:
- { role: erasme.rbenv }
- { role: erasme.ruby-compiled,
ruby_version: "2.2.0" }
Note however that erasme.rbenv is automatically listed as a dependency in the erasme.ruby role, so it shouldn't be necessary to add it explicitely to your projects.
MIT
Created for @erasme by @leucos.