summaryrefslogtreecommitdiffstats
path: root/roles/git/tasks
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2016-03-02 21:37:48 +0100
committerGuilhem Moulin <guilhem@fripost.org>2016-03-02 21:38:37 +0100
commit4a3f204a3d285a377161efb2dbeec73d329e6d1a (patch)
treed6b994f7d385c0617e351662694bc0c9cc65b1ff /roles/git/tasks
parent59eb4f8df3ac8c58c28b2068678e1ce97dd58b6d (diff)
cgit: Create cache directory /var/cache/cgit
Diffstat (limited to 'roles/git/tasks')
-rw-r--r--roles/git/tasks/cgit.yml6
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
@@ -33,6 +33,12 @@
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