Updated stat of rvm dir and become cody to install rvm

This commit is contained in:
2017-05-19 07:52:08 -04:00
parent dc3375ed47
commit 918543ca69

View File

@@ -2,16 +2,20 @@
# This playbook contains plays that will run on developer-machines
- name: Is rvm installed
stat: path=/usr/local/rvm/bin/rvm
stat: path=/home/cody/.rvm
register: rvm_installed
- name: Install rvm key
shell: gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
when: not rvm_installed.stat.exists
become: true
become_user: cody
- name: Install rvm and latest ruby
shell: \curl -sSL https://get.rvm.io | bash -s stable
when: not rvm_installed.stat.exists
become: true
become_user: cody
- name: Is heroku installed
shell: which heroku