From 918543ca69fed18c8825151b9132423bb426ff82 Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Fri, 19 May 2017 07:52:08 -0400 Subject: [PATCH] Updated stat of rvm dir and become cody to install rvm --- roles/developer-machine/tasks/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/developer-machine/tasks/main.yml b/roles/developer-machine/tasks/main.yml index 9077239..297f782 100644 --- a/roles/developer-machine/tasks/main.yml +++ b/roles/developer-machine/tasks/main.yml @@ -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