Add cron job to prune old images

This commit is contained in:
Stefan Bethke 2024-10-31 11:27:12 +01:00
parent f184ad220b
commit d526e9fdfa

View file

@ -111,3 +111,11 @@
minute: "0"
hour: "5"
job: "cd /ansible_docker_compose; docker compose pull && docker compose up -d"
- name: Install automatic cleanup cron job
become: true
ansible.builtin.cron:
name: 'docker compose auto update'
minute: "23"
hour: "4"
job: "docker system prune -a -f"