Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
rxaviers committed Dec 4, 2014
1 parent 253217f commit 070a02d
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions web/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@
- name: Install Ruby package
apt: name=ruby update_cache=yes

- name: Check if .gemrc exists
stat: path=~/.gemrc
register: gemrc

- name: Create .gemrc file if not exists
file: path=~/.gemrc state=touch
when: not gemrc.stat.exists

- name: Don't install ruby packages documentation
lineinfile: "dest=~/.gemrc line='gem: --no-ri --no-rdoc'"
- name: Skip documentation when installing new packages
lineinfile: "dest=~/.gemrc create=yes line='gem: --no-ri --no-rdoc'
state=present"

0 comments on commit 070a02d

Please sign in to comment.