An ansible role that installs rbenv and rbenv ruby-build plugin for specified user.
Ansible version 2.0.1
List of default variables. You can override variables in your playbook.
---
rbenv_version: v1.0.0
rbenv_repo_path: https://github.com/rbenv/rbenv.git
rbenv_ruby_build_repo_path: https://github.com/sstephenson/ruby-build.git
rbenv_user: vagrant
rbenv_root_path: "/home/{{ rbenv_user }}/.rbenv"
rbenv_ruby_version: 2.3.0
rbenv_gems:
- bundler
None.
---
- hosts: localhost
roles:
- spitfast.rbenv
Create your playbook (described in the section above) and run one of the following commands:
$ ansible-playbook playbook.yml
- to run all tasks in role
$ ansible-playbook playbook.yml --tags=gems
- to run only gems installation task
$ ansible-playbook playbook.yml --skip-tags=gems
- to run only rbenv installation task (without gems)
MIT