Use the path of the rvm binary instead of sourcing a path that might not exist

This commit is contained in:
Nick Janetakis
2014-06-14 11:37:20 -04:00
parent 4f0e0c84ba
commit defee6eb8b

View File

@@ -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