From e03ca62d0791524cde203aaeb1d85a4a2bac7ee9 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Fri, 15 Apr 2016 14:55:09 -0400 Subject: git: clear cgit cache after config updates --- roles/git/handlers/main.yml | 3 +++ roles/git/tasks/cgit.yml | 1 + 2 files changed, 4 insertions(+) (limited to 'roles') 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 -- cgit v1.2.3