Last active
December 31, 2015 09:39
-
-
Save ihassin/7968406 to your computer and use it in GitHub Desktop.
Ansible virtual_ruby.yml used in the blog post http://ihassin.wordpress.com/2013/12/15/from-zero-to-deployment-vagrant-ansible-rvm-and-capistrano-to-deploy-your-rails-apps-to-digitalocean-automatically/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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