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