-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move content of ruby.yml to main.yml
- Loading branch information
1 parent
efb6f59
commit 71286c5
Showing
2 changed files
with
37 additions
and
39 deletions.
There are no files selected for viewing
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
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" |
This file was deleted.
Oops, something went wrong.