Skip to content

Instantly share code, notes, and snippets.

@rmetzler
Forked from owainlewis/ruby.yml
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmetzler/418098c603ae9d52fa2b to your computer and use it in GitHub Desktop.
Save rmetzler/418098c603ae9d52fa2b to your computer and use it in GitHub Desktop.
# 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
apt_repository: repo=ppa:brightbox/ruby-ng
- name: Install Ruby
apt: name={{ item }} state=latest update_cache=yes
with_items:
- ruby2.1
- ruby2.1-dev
- ruby2.1-doc
- name: Install some useful ruby gems
gem: name={{ item }} state=present
with_items:
- rails
@rmetzler
Copy link
Author

unfortunately the brightbox ppa doesn't seem to have the latest Ruby version available :(

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