---

- name: install bundler
  sudo_user: "{{ rvm_user }}"
  command: /home/{{ rvm_user }}/.rvm/bin/gem install bundler creates=/home/{{ rvm_user }}/.rvm/gems/ruby-{{ ruby_version }}/bin/bundle

- name: Bundler install gems (first run is slow)
  sudo_user: "{{ rvm_user }}"
  command: /home/{{ rvm_user }}/.rvm/bin/rvm {{ ruby_version }} exec bundle install --deployment --without test chdir={{ bundler_path  }}

---

- name: install bundler
  sudo_user: "{{ rvm_user }}"
  command: /home/{{ rvm_user }}/.rvm/bin/rvm {{ ruby_version }} exec gem install bundler creates=/home/{{ rvm_user }}/.rvm/gems/ruby-{{ ruby_version }}/bin/bundle

- name: Bundler install gems (first run is slow)
  sudo_user: "{{ rvm_user }}"
  command: /home/{{ rvm_user }}/.rvm/bin/rvm {{ ruby_version }} exec bundle install --deployment --without test chdir={{ bundler_path  }}

Update Bundler install command, rvm 'gem' binary is deprecated
Update Bundler install command, rvm 'gem' binary is deprecated
