Skip to content

Commit

Permalink
move content of ruby.yml to main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
enginyoyen committed Dec 19, 2014
1 parent efb6f59 commit 71286c5
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 39 deletions.
38 changes: 37 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,38 @@
---
# tasks file for ansible-ruby

- name: ruby | install ansible dependencies
apt:
pkg: python-pycurl
state: installed

- name: ruby | add brightbox ppa for ruby
apt_repository:
repo: 'ppa:brightbox/ruby-ng-experimental'
state: present
register: new_ppa

- name: apt update if new ppa added
apt:
update-cache: yes
when: new_ppa | changed

- name: ruby | install ruby and build-essential
apt:
pkg: "{{ item }}"
state: installed
with_items:
- "ruby{{ ruby_version }}"
- "ruby{{ ruby_version }}-dev"
- ruby-switch
- build-essential

- name: ruby | set ruby as default
shell: "ruby-switch --set ruby{{ ruby_version }}"
register: ruby_switch
changed_when : ruby_switch.stdout != ""

- name: ruby | install bundler
gem:
name="bundler"
user_install="no"
state="present"
38 changes: 0 additions & 38 deletions tasks/ruby.yml

This file was deleted.

0 comments on commit 71286c5

Please sign in to comment.