Check for rvm as the developer username
This commit is contained in:
@@ -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 == ""
|
||||
|
||||
Reference in New Issue
Block a user