Skip to content

Commit

Permalink
Merge pull request #28 from ajitgeorge/autolibs
Browse files Browse the repository at this point in the history
Allow users to configure the autolibs mode of installed rvms
  • Loading branch information
nickjj committed Jan 22, 2015
2 parents 7bab6b7 + 5fe16e2 commit e22e665
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ rvm1_gpg_keys: 'D39DC0E3'
# The GPG key server
rvm1_gpg_key_server: 'hkp://keys.gnupg.net'
# autolib mode, see https://rvm.io/rvm/autolibs
rvm1_autolib_mode: 3
```

## Example playbook
Expand Down
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ rvm1_gpg_keys: 'D39DC0E3'

# The GPG key server
rvm1_gpg_key_server: 'hkp://keys.gnupg.net'

# autolib mode, see https://rvm.io/rvm/autolibs
rvm1_autolib_mode: 3
2 changes: 1 addition & 1 deletion tasks/rvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@
when: rvm_binary.stat.exists and rvm1_rvm_check_for_updates

- name: Configure rvm
command: '{{ rvm1_rvm }} autolibs 3'
command: '{{ rvm1_rvm }} autolibs {{ rvm1_autolib_mode }}'
when: not rvm_binary.stat.exists

0 comments on commit e22e665

Please sign in to comment.