summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/koschei/files/cron-db-cleanup1
-rw-r--r--roles/koschei/tasks/main.yml7
2 files changed, 8 insertions, 0 deletions
diff --git a/roles/koschei/files/cron-db-cleanup b/roles/koschei/files/cron-db-cleanup
new file mode 100644
index 000000000..f6deefc35
--- /dev/null
+++ b/roles/koschei/files/cron-db-cleanup
@@ -0,0 +1 @@
+0 4 * * * root koschei-admin cleanup --older-than 6
diff --git a/roles/koschei/tasks/main.yml b/roles/koschei/tasks/main.yml
index b739a1af8..045babfa1 100644
--- a/roles/koschei/tasks/main.yml
+++ b/roles/koschei/tasks/main.yml
@@ -99,3 +99,10 @@
tags:
- koschei
- selinux
+
+- name: Copy the cleanup cronjob
+ copy: src="{{item}}" dest="/etc/cron.d/{{item}}"
+ with_items:
+ - cron-db-cleanup
+ tags:
+ - koschei