diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2016-03-02 21:37:48 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2016-03-02 21:38:37 +0100 |
commit | 4a3f204a3d285a377161efb2dbeec73d329e6d1a (patch) | |
tree | d6b994f7d385c0617e351662694bc0c9cc65b1ff /roles | |
parent | 59eb4f8df3ac8c58c28b2068678e1ce97dd58b6d (diff) |
cgit: Create cache directory /var/cache/cgit
Diffstat (limited to 'roles')
-rw-r--r-- | roles/git/tasks/cgit.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/git/tasks/cgit.yml b/roles/git/tasks/cgit.yml index cebcec8..df11872 100644 --- a/roles/git/tasks/cgit.yml +++ b/roles/git/tasks/cgit.yml @@ -16,40 +16,46 @@ - name: Copy /usr/lib/cgit/filters/syntax-highlighting2.sh copy: src=usr/lib/cgit/filters/syntax-highlighting2.sh dest=/usr/lib/cgit/filters/syntax-highlighting2.sh owner=root group=root mode=0755 register: r2 notify: - Restart uWSGI - name: Create a user 'cgit' user: name=cgit system=yes home=/var/www shell=/usr/sbin/nologin password=! state=present register: r3 notify: - Restart uWSGI +- name: Create cache directory /var/cache/cgit + file: path=/var/cache/cgit + state=directory + owner=cgit group=cgit + mode=0700 + - name: Create /etc/uwsgi/apps-available/{cgit,git-http-backend}.ini copy: src=etc/uwsgi/apps-available/{{ item }}.ini dest=/etc/uwsgi/apps-available/{{ item }}.ini owner=root group=root mode=0644 register: r4 with_items: - cgit - git-http-backend notify: - Restart uWSGI - name: Create /etc/uwsgi/apps-enabled/{cgit,git-http-backend}.ini file: src=../apps-available/{{ item }}.ini dest=/etc/uwsgi/apps-enabled/{{ item }}.ini owner=root group=root state=link force=yes register: r5 with_items: - cgit |