feat: add docker images prune cron job to docker_setup role
This commit is contained in:
parent
1883d1da9a
commit
83a9b81cbc
1 changed files with 7 additions and 0 deletions
|
@ -82,3 +82,10 @@
|
||||||
append: yes
|
append: yes
|
||||||
when: item.docker
|
when: item.docker
|
||||||
with_items: "{{ users }}"
|
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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue