Skip to content

Commit

Permalink
rvm autolibs option is now customizable
Browse files Browse the repository at this point in the history
  • Loading branch information
RafalNiewinski committed Jul 22, 2016
1 parent b87d2c1 commit f4bc91e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ Role Variables
- `rvm_url` per default set to `https://get.rvm.io`
- `rvm_root` per default set to `/usr/local/rvm`
- `rvm_init_script` per default set to `/etc/profile.d/rvm.sh`
- `rvm_autolibs` per default set to `3` - controls automatic installation of dependencies of rvm and ruby (if needed)
- `0` -> Do not do anything (not installing dependencies and ruby or rvm can be unusable after installation)
- `1` -> Use available libs, ignore missing (ruby or rvm can be unusable after installation)
- `2` -> Use libs, fail if some are missing (good option for local installation on user without package manager access)
- `3` -> Use libs, install missing libs (works if you have package manager rights)
- `4` -> Install missing package manager (only OSX, on Linux it's like 3)

The latest two variables have presented values because installation runs with root permissions by default (if you passed `-s` option when you're running your playbook)
The `rvm_root` and `rvm_init_script` have presented values because installation runs with root permissions by default (if you passed `-s` option when you're running your playbook)

License
-------
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ rvm_root: /usr/local/rvm
rvm_init_script: /etc/profile.d/rvm.sh
rvm_auto_update_rvm: true
rvm_ruby_version: ruby-2.2.0
rvm_autolibs: 3
4 changes: 2 additions & 2 deletions tasks/install_rvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
path: "{{rvm.temp_installer_path}}"
state: absent

- name: setting RVM autolibs on
command: "{{rvm_root}}/bin/rvm autolibs 3"
- name: setting RVM autolibs option
command: "{{rvm_root}}/bin/rvm autolibs {{rvm_autolibs}}"

0 comments on commit f4bc91e

Please sign in to comment.