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:
parent
be0f5446f0
commit
7e979e4050
2 changed files with 7 additions and 0 deletions
2
roles/cgit/clean_lock_cron/files/clean-lock.cron
Normal file
2
roles/cgit/clean_lock_cron/files/clean-lock.cron
Normal file
|
@ -0,0 +1,2 @@
|
|||
*/15 * * * * root find /var/cache/cgit/ -cmin +60 -name '*.lock' -type f -delete -maxdepth 1
|
||||
|
5
roles/cgit/clean_lock_cron/tasks/main.yml
Normal file
5
roles/cgit/clean_lock_cron/tasks/main.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue