aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-04-15 14:55:09 -0400
committerbnewbold <bnewbold@robocracy.org>2016-04-15 14:55:09 -0400
commite03ca62d0791524cde203aaeb1d85a4a2bac7ee9 (patch)
tree82f8267afcb24ce4f173f29dfc0143106bfe912a
parentc4b5e49f6e4b4a31c0c278e464c690823c0ad4fd (diff)
downloadinfra-e03ca62d0791524cde203aaeb1d85a4a2bac7ee9.tar.gz
infra-e03ca62d0791524cde203aaeb1d85a4a2bac7ee9.zip
git: clear cgit cache after config updates
-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