diff --git a/roles/koschei/files/cron-db-cleanup b/roles/koschei/files/cron-db-cleanup new file mode 100644 index 0000000000..f6deefc350 --- /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 b739a1af8f..045babfa1d 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