Add a new cgit/clean_lock_cron role

This will be needed to migrate Dist Git from puppet to ansible.
This commit is contained in:
Mathieu Bridon 2014-07-08 15:32:17 +02:00 committed by Kevin Fenzi
parent be0f5446f0
commit 7e979e4050
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,2 @@
*/15 * * * * root find /var/cache/cgit/ -cmin +60 -name '*.lock' -type f -delete -maxdepth 1

View file

@ -0,0 +1,5 @@
---
# tasklist for setting up the Cron job cleaning CGit locks
- name: install the cron file
copy: src=clean-lock.cron dest=/etc/cron.d/cgit-clean-lock.cron mode=0644