Check for rvm as the developer username

This commit is contained in:
2017-05-10 09:28:12 -04:00
parent cefe8c3f19
commit 909c43c884

View File

@@ -3,13 +3,14 @@
- name: Is rvm installed
shell: which rvm
become: yes
become_user: cody
register: rvm_installed
failed_when: "rvm_installed.rc == 2 or rvm_installed.rc == 3"
- name: Install rvm key
shell: gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
when: rvm_installed.stdout == ""
- name: Install rvm and latest ruby
shell: \curl -sSL https://get.rvm.io | bash -s stable
when: rvm_installed.stdout == ""