summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorMichael Simacek <msimacek@redhat.com>2015-05-12 15:43:58 +0200
committerMichael Simacek <msimacek@redhat.com>2015-05-13 11:24:30 +0000
commitee649ba38cd2665db38e470c00a33add27ffd4e9 (patch)
treebaab4a8712d9c5a38644a8753544671798c83c00 /roles
parent7ef2204cf4217827fe0fc87cffcb767699a24592 (diff)
Add cleanup cronjob to koschei
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