rvm / rvm1-ansible

The official ansible RVM role to install and manage your Ruby versions.
MIT License
271 stars 136 forks source link

support update configuration #57

Closed vkill closed 8 years ago

vkill commented 9 years ago

When we use rvm install ruby, the default ruby binary file download host is http://cache.ruby-lang.org. In China, usually we cannot access it, so we should change rvm "ruby_url" configuration in $rvm_path/config/db .

In this pull request, I add a default variable rvm1_configurations: {}, and add two tasks(update config/db and reload rvm), they will run after rvm installed.

the usage like this

rvm1_configurations:
   ruby_url: http://ruby.taobao.org/mirrors/ruby

I wish that you merge it, thanks.

vkill commented 8 years ago

new PR is #95