Rather than check the remote VERSION with the 'uri' Ansible module I decided to just always run rvm update unless you specifically disable that in the default options. The benefits of this change is that the role no longer depends on any packages and CentOS 7 does not have python-httplib2 anyways. The cons of this change is that the update takes an additional 2-3 seconds to run when it was skipped previously unless needed. However, with the elimination of quite a few tasks and logic the overall run speed of the role is faster than before.
26 lines
718 B
YAML
26 lines
718 B
YAML
---
|
|
|
|
# Install 1 or more versions of ruby
|
|
rvm1_rubies:
|
|
- 'ruby-2.1.3'
|
|
|
|
# Delete a specific version of ruby (ie. ruby-2.1.0)
|
|
rvm1_delete_ruby:
|
|
|
|
# Install path for rvm (defaults to system wide)
|
|
rvm1_install_path: '/usr/local/lib/rvm'
|
|
|
|
# Add or remove any install flags
|
|
# NOTE: If you are doing a USER BASED INSTALL then
|
|
# make sure you ADD the --user-install flag below
|
|
rvm1_install_flags: '--auto-dotfiles'
|
|
|
|
# URL for the latest installer script
|
|
rvm1_rvm_latest_installer: 'https://raw.githubusercontent.com/wayneeseguin/rvm/master/binscripts/rvm-installer'
|
|
|
|
# rvm version to use
|
|
rvm1_rvm_version: 'stable'
|
|
|
|
# Check and update rvm, disabling this will force rvm to never update
|
|
rvm1_rvm_check_for_updates: True
|