Giter Site home page Giter Site logo

ansible-rvm's Introduction

Ansible RVM role

This Ansible role installs RVM as root and the required ruby version. If user isn't root (executing without sudo) then RVM will be installed to the user home directory, but you need to change pathes to it own RVM through variables rvm.root and rvm.init_script.

Requirements

Tested with CentOS 6.4, 6.5, 7.0, Debian 6.0.10, 7.8, 8.1, Fedora 18, 19, 20, 21, Ubuntu 10.04, 12.04, 13.10, 14.04, 14.10

Role Variables

  • rvm_install_type per default set to system (valid values: system, user)
  • rvm_default_ruby_version per default set to ruby-2.2.2
  • rvm_auto_update_rvm per default set to true
  • rvm.url per default set to https://get.rvm.io
  • rvm_root per default set to /usr/local/rvm
  • rvm_init_script per default set to /etc/profile.d/rvm.sh

The last two variables are set according to whether a system-wide install (Multi-User install), or a Single-User install has been chosen with rvm_install_type.

The playbook runs with root permissions by default if the ansible_ssh_user that is running your playbook has sudo privileges, and rvm_install_type is set to system.

When the playbook is run with rvm_install_type = user, the playbook will install RVM to the home directory of the ansible_ssh_user. The defaults for the last two variables are then:

  • rvm_root: ~/.rvm
  • rvm_init_script: ~/.rvm/scripts/rvm

License

Licensed under MIT. Do what you want with it.

ansible-rvm's People

Contributors

newmen avatar trinitronx avatar aguynamedryan avatar klodio avatar

Watchers

James Cloos avatar Alif Jamaluddin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.