Commit 07f1f0a6 authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

Merge branch 'add-dovecot-cleanup-timer' into 'master'

add dovecot cleanup timer to purge mdbox files

See merge request !135
parents 8919302b 5adae994
Pipeline #2966 passed with stage
in 31 seconds
[Unit]
Description=Daily Dovecot cleanup
[Service]
Type=oneshot
ExecStart=/usr/bin/doveadm purge -A
[Unit]
Description=Daily Dovecot cleanup
[Timer]
OnCalendar=00:05:00
[Install]
WantedBy=timers.target
......@@ -42,3 +42,18 @@
when: configure_firewall
tags:
- firewall
- name: install systemd timers
copy: src={{ item }} dest=/etc/systemd/system/{{ item }} owner=root group=root mode=0644
with_items:
- dovecot-cleanup.timer
- dovecot-cleanup.service
- name: activate systemd timers
systemd:
name: "{{ item }}"
state: started
enabled: yes
daemon_reload: yes
with_items:
- dovecot-cleanup.timer
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment