aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/git/handlers/main.yml3
-rw-r--r--roles/git/tasks/cgit.yml1
2 files changed, 4 insertions, 0 deletions
diff --git a/roles/git/handlers/main.yml b/roles/git/handlers/main.yml
index bc100db..b9d7705 100644
--- a/roles/git/handlers/main.yml
+++ b/roles/git/handlers/main.yml
@@ -4,3 +4,6 @@
- name: git-daemon restart
service: name=git-daemon state=restarted enabled=yes
+
+- name: cgit clear cache
+ shell: rm -f /var/cache/cgit/*
diff --git a/roles/git/tasks/cgit.yml b/roles/git/tasks/cgit.yml
index 5c4663a..62b142e 100644
--- a/roles/git/tasks/cgit.yml
+++ b/roles/git/tasks/cgit.yml
@@ -20,6 +20,7 @@
template: src=etc_cgitrc.j2 dest=/etc/cgitrc
group=www-data
owner=root
+ notify: cgit clear cache
- name: Create static files directory
file: path=/srv/http/cgit