From 5fe16e21e2a3e5648ea1a3527657483820e702e0 Mon Sep 17 00:00:00 2001 From: tipair Date: Wed, 21 Jan 2015 16:48:00 -0600 Subject: [PATCH] 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. --- README.md | 3 +++ defaults/main.yml | 3 +++ tasks/rvm.yml | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 75ab474..8406769 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/defaults/main.yml b/defaults/main.yml index fe35719..b33c80d 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 diff --git a/tasks/rvm.yml b/tasks/rvm.yml index ee9cada..8d62825 100644 --- a/tasks/rvm.yml +++ b/tasks/rvm.yml @@ -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