Add in the ability to copy the installer script from a local source

This commit is contained in:
Nick Janetakis
2014-06-03 07:24:39 -04:00
parent 1152821f62
commit eb244bc702

View File

@@ -20,7 +20,11 @@
get_url:
url: "{{ ruby_rvm_latest_installer }}"
dest: "{{ ruby_temp_download_path }}/rvm-installer.sh"
when: not rvm_installer.stat.exists or ruby_rvm_force_upgrade_installer
when: "'://' in ruby_rvm_latest_installer and not rvm_installer.stat.exists or ruby_rvm_force_upgrade_installer"
- name: ensure rvm installer is copied
copy: src="{{ ruby_rvm_latest_installer }}" dest="{{ ruby_temp_download_path }}/rvm-installer.sh"
when: not "://" in ruby_rvm_latest_installer and not rvm_installer.stat.exists or ruby_rvm_force_upgrade_installer
- name: ensure rvm installer is configured
file: