Skip to content

Instantly share code, notes, and snippets.

@ihassin
Last active December 31, 2015 09:39
Show Gist options
  • Save ihassin/7968406 to your computer and use it in GitHub Desktop.
Save ihassin/7968406 to your computer and use it in GitHub Desktop.
- hosts: webservers
user: vagrant
vars_files:
- vars.yml
tasks:
- name: Download ruby
get_url: "url={{ruby_url}} dest={{ruby_dir}}/ruby-{{ project_ruby }}.tar"
- name: Extract ruby
command: tar -zxf "{{ruby_dir}}/ruby-{{project_ruby}}.tar"
- name: Make, configure, and install ruby
command: "{{item}} chdir={{ruby_dir}}/ruby-{{project_ruby}}"
with_items:
- ./configure
- make
- sudo make install
- name: Install bundler
command: "sudo gem install bundler"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment