Add cron job to prune old images
This commit is contained in:
parent
f184ad220b
commit
d526e9fdfa
|
@ -111,3 +111,11 @@
|
||||||
minute: "0"
|
minute: "0"
|
||||||
hour: "5"
|
hour: "5"
|
||||||
job: "cd /ansible_docker_compose; docker compose pull && docker compose up -d"
|
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"
|
||||||
|
|
Loading…
Reference in a new issue