Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brightbox Ruby Ansible Role

Used to install ruby with Ansible using the brightbox PPA to avoid compiling.

Using

The ruby version can be specified in 2 ways.

.ruby-version syntax

- hosts: defaults
  roles:
    - { role: brightbox_ruby, ruby_version: 2.2.2 }

or by package name

- hosts: defaults
  roles:
    - { role: brightbox_ruby, brightbox_ruby_version: ruby2.2 }

If using with Vagrant you pass the value of your .ruby-version file directly.

Vagrant.configure('2') do |config|
  config.vm.define do |dev|
    dev.vm.box = 'ubuntu/precise64'

    dev.vm.provision :ansible do |ansible|
      ansible.playbook = 'provisioning/development.yml'
      ansible.extra_vars = {
        ruby_version: `cat .ruby-version`.strip
      }
    end
  end
end

License

  • MIT

About

Ansible role for installing Ruby using Brightbox PPA and .ruby-version file

Resources

Stars

0 stars

Watchers

20 watching

Forks

Releases

Packages

Contributors