Install rbenv, ruby-build, ruby and ~/.gemrc with following content:
gem: --no-document
.gemrc can be overriden by adding file files/rbenv/.gemrc to the playbook.
git, autoconf, bison, build-essential, libssl-dev, libyaml-dev, libreadline6, libreadline6-dev, zlib1g, zlib1g-dev. Requirements are installed by the role.
rbenv.user
Remote user. Defaults to ansibleremote_user
orsudo_user
rbenv.version
rbenv version tag, orHEAD
. Defaults tov0.4.0
rbenv.node_version
ruby version. Defaults to2.0.0-p247
No depedencies.
- hosts: servers
roles:
- role: rbenv
rbenv:
user: deploy
version: v0.4.0
ruby_version: 2.0.0-p247
BSD
Jarno Keskikangas