Install rbenv via Ansible role
masterThis Ansible role automates the installation of rbenv and its associated plugins. You can choose between a 'system' installation (typically in /usr/local/rbenv) or a 'user' installation (typically in $HOME/.rbenv). The role allows you to specify which Ruby versions to install, manage plugins, and configure specific build options for Ruby versions.
- hosts: web
gather_facts: true
vars:
rbenv:
env: user
version: v0.4.0
default_ruby: 2.0.0-p353
rubies:
- version: 2.0.0-p353
- version: 2.2.4
env:
RUBY_CONFIGURE_OPTS: "--enable-shared"
- version: 2.3.4
env:
RUBY_CONFIGURE_OPTS: "--enable-shared --with-jemalloc"
rbenv_extra_depends:
- libjemalloc1
- libjemalloc-dev
roles:
- role: zzet.rbenv
rbenv_users:
- user