forked from evolix/ansible-roles
amavis: Workaround https://bugs.debian.org/569150
This commit is contained in:
parent
19787152d8
commit
2e73bf09f7
2
amavis/files/amavis_purge_virusmails
Normal file
2
amavis/files/amavis_purge_virusmails
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
find /var/lib/amavis/virusmails/ -type f -mtime +30 -delete
|
|
@ -16,3 +16,12 @@
|
|||
notify: restart amavis
|
||||
tags:
|
||||
- amavis
|
||||
|
||||
- name: Install purge custom cron
|
||||
ansible.builtin.copy:
|
||||
src: amavis_purge_virusmails
|
||||
dest: /etc/cron.daily/amavis_purge_virusmails
|
||||
mode: "0755"
|
||||
tags:
|
||||
- amavis
|
||||
- amavis_purge_cron
|
||||
|
|
Loading…
Reference in a new issue