feat: add docker images prune cron job to docker_setup role

This commit is contained in:
David Kilias 2024-09-07 22:14:20 +02:00 committed by dkdent
parent 1883d1da9a
commit 83a9b81cbc

View file

@ -82,3 +82,10 @@
append: yes
when: item.docker
with_items: "{{ users }}"
- name: Ensure that docker image prune cron job is present.
ansible.builtin.cron:
name: docker image prune
special_time: weekly
user: root
job: "docker image prune --all --force"