diff --git a/web/ruby.yml b/web/ruby.yml index 17d3e05..296ce8d 100644 --- a/web/ruby.yml +++ b/web/ruby.yml @@ -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"