This Ansible role installs RVM as root and the required ruby version. If user isn't root (executing without sudo) then RVM will be installed to the user home directory, but you need to change pathes to it own RVM through variables rvm.root and rvm.init_script.
Tested with CentOS 6.5, Debian 6, 7, Fedora 18, 19, 20, Ubuntu 10.04, 12.04, 13.10
rvm.ruby_versionper default set toruby-2.1.1rvm.urlper default set tohttps://get.rvm.iorvm.rootper default set to/usr/local/rvmrvm.init_scriptper default set to/etc/profile.d/rvm.sh
The latest two variables have presented values because installation runs with root permissions by default (if you passed -s option when you're running your playbook)
Licensed under MIT. Do what you want with it.