fixes the rvm install when rvm1_user is specified

- use rvm1_user for the gpg keys
 - use rvm1_user when installing rvm
 - use rvm1_user when updating rvm
 - use rvm1_user when configuring rvm
This commit is contained in:
Lorenzo Pisani
2015-01-28 11:40:57 -08:00
parent e22e6651f8
commit 861c0e6d4b

View File

@@ -30,18 +30,22 @@
command: 'gpg --keyserver {{ rvm1_gpg_key_server }} --recv-keys {{ rvm1_gpg_keys }}'
changed_when: False
when: rvm1_gpg_keys != ''
sudo_user: '{{ rvm1_user }}'
- name: Install rvm
command: >
{{ rvm1_temp_download_path }}/rvm-installer.sh {{ rvm1_rvm_version }}
--path {{ rvm1_install_path }} {{ rvm1_install_flags }}
when: not rvm_binary.stat.exists
sudo_user: '{{ rvm1_user }}'
- name: Update rvm
shell: '{{ rvm1_rvm }} get {{ rvm1_rvm_version }} && {{ rvm1_rvm }} reload'
changed_when: False
when: rvm_binary.stat.exists and rvm1_rvm_check_for_updates
sudo_user: '{{ rvm1_user }}'
- name: Configure rvm
command: '{{ rvm1_rvm }} autolibs {{ rvm1_autolib_mode }}'
when: not rvm_binary.stat.exists
sudo_user: '{{ rvm1_user }}'