Fixed check for rvm
This commit is contained in:
@@ -2,18 +2,16 @@
|
|||||||
# This playbook contains plays that will run on developer-machines
|
# This playbook contains plays that will run on developer-machines
|
||||||
|
|
||||||
- name: Is rvm installed
|
- name: Is rvm installed
|
||||||
shell: which rvm
|
stat: path=/usr/local/rvm/bin/rvm
|
||||||
become: yes
|
|
||||||
become_user: cody
|
|
||||||
register: rvm_installed
|
register: rvm_installed
|
||||||
failed_when: "rvm_installed.rc == 2 or rvm_installed.rc == 3"
|
|
||||||
|
|
||||||
- name: Install rvm key
|
- name: Install rvm key
|
||||||
shell: gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
|
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
|
- name: Install rvm and latest ruby
|
||||||
shell: \curl -sSL https://get.rvm.io | bash -s stable
|
shell: \curl -sSL https://get.rvm.io | bash -s stable
|
||||||
when: rvm_installed.stdout == ""
|
when: not rvm_installed.stat.exists
|
||||||
|
|
||||||
- name: Is heroku installed
|
- name: Is heroku installed
|
||||||
shell: which heroku
|
shell: which heroku
|
||||||
|
|||||||
Reference in New Issue
Block a user