docker(role): move automatic cleanup of unused Docker data here
All checks were successful
/ Ansible Lint (push) Successful in 2m20s

Move the automatic cleanup of unused Docker data to the docker role from
the docker_compose role, so that hosts, which only use Docker (like
renovate) also have an automatic cleanup set up.
Also use a systemd timer instead of cron.
This commit is contained in:
June 2026-03-06 21:09:47 +01:00
commit 2b5f261cd3
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0
6 changed files with 53 additions and 8 deletions

View file

@ -0,0 +1,9 @@
[Unit]
Description=cleanup unused docker data every day
[Timer]
OnCalendar=daily
RandomizedDelaySec=1h
[Install]
WantedBy=timers.target