Skip to content

Instantly share code, notes, and snippets.

@owainlewis
Created October 22, 2013 09:59
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save owainlewis/7098068 to your computer and use it in GitHub Desktop.
Save owainlewis/7098068 to your computer and use it in GitHub Desktop.
Ansible Ruby 2.0 install on Ubuntu Linux
# Install Ruby
## ===============================================
- name: Install dependencies
apt: name=$item state=latest update_cache=yes
with_items:
- bison
- openssl
- libyaml-dev
- autoconf
- automake
- libtool
- pkg-config
- name: Add Brightbox PPA
action: apt_repository repo=ppa:brightbox/ruby-ng-experimental
- name: Install Ruby
apt: name=$item state=latest update_cache=yes
with_items:
- ruby2.0
- ruby2.0-dev
- ruby2.0-doc
- name: Install some useful ruby gems
action: gem name=$item state=present
with_items:
- rails
@quicksnap
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment