Fixed check for rvm

This commit is contained in:
2017-05-13 20:00:56 -04:00
parent 18207cec61
commit d7d80330ac

View File

@@ -2,18 +2,16 @@
# This playbook contains plays that will run on developer-machines
- name: Is rvm installed
shell: which rvm
become: yes
become_user: cody
stat: path=/usr/local/rvm/bin/rvm
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 == ""
when: not rvm_installed.stat.exists
- name: Install rvm and latest ruby
shell: \curl -sSL https://get.rvm.io | bash -s stable
when: rvm_installed.stdout == ""
when: not rvm_installed.stat.exists
- name: Is heroku installed
shell: which heroku