This fixes the location of the bundler pointing to the global ruby version

This commit is contained in:
Wander Bravo
2015-11-19 09:15:32 -05:00
parent 7b5998f625
commit 34445beea8

View File

@@ -26,10 +26,10 @@
- name: Install bundler if not installed
shell: >
{{ rvm1_install_path }}/wrappers/{{ item }}/gem list
| if ! grep "^bundler " ; then {{ rvm1_install_path }}/wrappers/{{ item }}/gem install bundler ; fi
{{ rvm1_install_path }}/wrappers/{{ item }}@global/gem list
| if ! grep "^bundler " ; then {{ rvm1_install_path }}/wrappers/{{ item }}@global/gem install bundler ; fi
args:
creates: '{{ rvm1_install_path }}/wrappers/{{ item }}/bundler'
creates: '{{ rvm1_install_path }}/wrappers/{{ item }}@global/bundler'
with_items: rvm1_rubies
register: bundler_install
changed_when: '"Successfully installed bundler" in bundler_install.stdout'