Merge pull request 'feat: add docker images prune cron job to docker_setup role' (#418) from feat/cron-docker-prune into master
Reviewed-on: Netz39_Admin/netz39-infra-ansible#418 Reviewed-by: Stefan Haun <tux@netz39.de>
This commit is contained in:
commit
3e06295c38
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