From 430bfebefa5273ff19256788a793edb9a42dff7b Mon Sep 17 00:00:00 2001 From: Nikola Vidovic Date: Sat, 1 Nov 2014 17:07:44 +0100 Subject: [PATCH] Install ruby package, don't install docs for gems. Fixes #8 --- site.yml | 1 + web/ruby.yml | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 web/ruby.yml diff --git a/site.yml b/site.yml index a6fba6a..35793eb 100644 --- a/site.yml +++ b/site.yml @@ -12,3 +12,4 @@ tasks: - include: web/deploy.yml - include: web/git.yml + - include: web/ruby.yml diff --git a/web/ruby.yml b/web/ruby.yml new file mode 100644 index 0000000..17d3e05 --- /dev/null +++ b/web/ruby.yml @@ -0,0 +1,15 @@ +--- + +- 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'"