Created
September 7, 2013 11:26
-
-
Save antoviaque/6474813 to your computer and use it in GitHub Desktop.
edX configuration - Download issue with rbenv - Workaround
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/playbooks/roles/edxapp/tasks/ruby.yml b/playbooks/roles/edxapp/tasks/ruby.yml | |
index b34eec9..3088439 100644 | |
--- a/playbooks/roles/edxapp/tasks/ruby.yml | |
+++ b/playbooks/roles/edxapp/tasks/ruby.yml | |
@@ -92,7 +92,7 @@ | |
- install | |
- name: rbenv | install ruby $ruby_version | |
- shell: RBENV_ROOT=${rbenv_root} rbenv install $ruby_version | |
+ shell: RBENV_ROOT=${rbenv_root} rbenv install $ruby_version http://xyz.lcs.mit.edu/ruby/{{ ruby_version }}.tar.gz | |
when_failed: $ruby_installed | |
tags: | |
- ruby | |
diff --git a/playbooks/roles/rbenv/tasks/main.yml b/playbooks/roles/rbenv/tasks/main.yml | |
index b7f07bd..36d058c 100644 | |
--- a/playbooks/roles/rbenv/tasks/main.yml | |
+++ b/playbooks/roles/rbenv/tasks/main.yml | |
@@ -180,7 +180,7 @@ | |
- install | |
- name: rbenv | install ruby {{ rbenv_ruby_version }} | |
- shell: "{{ rbenv_user_home }}/.rbenv/bin/rbenv install {{ rbenv_ruby_version }} creates={{rbenv_user_home}}/.rbenv/versions/{{rbenv_ruby_version}}" | |
+ shell: "{{ rbenv_user_home }}/.rbenv/bin/rbenv install {{ rbenv_ruby_version }} http://xyz.lcs.mit.edu/ruby/{{ rbenv_ruby_version }}.tar.gz creates={{rbenv_user_home}}/.rbenv/versions/{{rbenv_ruby_version}}" | |
when: ruby_installed|failed | |
sudo: true | |
sudo_user: "{{ rbenv_user }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment