I have ansible-playbook succesfully installing rvm. But now i must change default ruby version. I have tried with:
- name: Install Bundler
command: bash -lc "rvm use 2.1.2-p95"
or
- name: use 2.1
shell: /usr/bin/env bash -lc "rvm use 2.1.2-p95"
or
- name: use 2.1
shell: rvm use 2.1.2-p95
But nothing ansible looks like all works fine but when i log ssh with the same user wich use ansible and run rvm current
the ruby version is the same.
I suspect from ssh and bash login shell but I can see solution.