Allow users to configure the autolibs mode of installed rvms.

On Ubuntu 14.04 without sudo, the default autolibs mode 2 causes the
role to hang when trying to install ruby-1.9.3-p0.
This commit is contained in:
tipair
2015-01-21 16:48:00 -06:00
parent 7bab6b78e7
commit 5fe16e21e2
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