diff --git a/tasks/redmine.yml b/tasks/redmine.yml index c1f4854..2f516c8 100644 --- a/tasks/redmine.yml +++ b/tasks/redmine.yml @@ -153,9 +153,13 @@ apt: pkg=libxslt1-dev state=present cache_valid_time=1800 - name: Add unicorn to the redmine Gemfile - copy: dest={{ redmine_glob_root_dir }}/{{ redmine_inst_dir }}/Gemfile.local content='gem "unicorn"\n' owner={{ redmine_user }} group={{ redmine_group }} + template: + src: Gemfile.local.j2 + dest: '{{ redmine_glob_root_dir }}/{{ redmine_inst_dir }}/Gemfile.local' + owner: '{{ redmine_user }}' + group: '{{ redmine_group }}' when: ruby_use_unicorn - tags: [ 'redmine', 'unicorn' ] + tags: [ 'redmine', 'unicorn', 'redmine_additional_gems' ] - name: Upgrade rake to fix all the gems mess shell: cd {{ redmine_glob_root_dir }}/{{ redmine_inst_dir }}; bundle update rake diff --git a/templates/Gemfile.local.j2 b/templates/Gemfile.local.j2 new file mode 100644 index 0000000..08798d3 --- /dev/null +++ b/templates/Gemfile.local.j2 @@ -0,0 +1,4 @@ +gem "unicorn" +{% if redmine_memcached %} +gem "dalli" +{% endif %}