From defee6eb8b9b884a9a5b0870258221adafbee143 Mon Sep 17 00:00:00 2001 From: Nick Janetakis Date: Sat, 14 Jun 2014 11:37:20 -0400 Subject: [PATCH] Use the path of the rvm binary instead of sourcing a path that might not exist --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 6366ca0..5e721ce 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -58,5 +58,5 @@ register: ruby_selected - name: ensure default ruby is selected - shell: source /etc/profile.d/rvm.sh && rvm use ruby-{{ ruby_version }} --default executable=/bin/bash + command: "{{ ruby_rvm_install_path }}/bin/rvm use ruby-{{ ruby_version }}" when: ruby_selected.stdout == '' or ruby_version not in ruby_selected.stdout \ No newline at end of file