Merge pull request #28 from ajitgeorge/autolibs

Allow users to configure the autolibs mode of installed rvms
This commit is contained in:
Nick Janetakis
2015-01-21 16:11:03 -08:00
3 changed files with 7 additions and 1 deletions

View File

@@ -60,6 +60,9 @@ rvm1_gpg_keys: 'D39DC0E3'
# The GPG key server # The GPG key server
rvm1_gpg_key_server: 'hkp://keys.gnupg.net' rvm1_gpg_key_server: 'hkp://keys.gnupg.net'
# autolib mode, see https://rvm.io/rvm/autolibs
rvm1_autolib_mode: 3
``` ```
## Example playbook ## Example playbook

View File

@@ -35,3 +35,6 @@ rvm1_gpg_keys: 'D39DC0E3'
# The GPG key server # The GPG key server
rvm1_gpg_key_server: 'hkp://keys.gnupg.net' rvm1_gpg_key_server: 'hkp://keys.gnupg.net'
# autolib mode, see https://rvm.io/rvm/autolibs
rvm1_autolib_mode: 3

View File

@@ -43,5 +43,5 @@
when: rvm_binary.stat.exists and rvm1_rvm_check_for_updates when: rvm_binary.stat.exists and rvm1_rvm_check_for_updates
- name: Configure rvm - name: Configure rvm
command: '{{ rvm1_rvm }} autolibs 3' command: '{{ rvm1_rvm }} autolibs {{ rvm1_autolib_mode }}'
when: not rvm_binary.stat.exists when: not rvm_binary.stat.exists