Change in osmo-ci[master]: ansible/podman: add cronjob to clean old images
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/30476 ) Change subject: ansible/podman: add cronjob to clean old images ...................................................................... ansible/podman: add cronjob to clean old images Related: OS#5365 Related: https://osmocom.org/projects/osmocom-servers/wiki/Docker_cache_clean_up Change-Id: Ib3c7575943b842b6b5a15967c59fa8d0a9b2d6f5 --- M ansible/roles/podman/tasks/main.yml 1 file changed, 11 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/76/30476/1 diff --git a/ansible/roles/podman/tasks/main.yml b/ansible/roles/podman/tasks/main.yml index 7f23396..ca8490a 100644 --- a/ansible/roles/podman/tasks/main.yml +++ b/ansible/roles/podman/tasks/main.yml @@ -15,3 +15,14 @@ mode: 0644 owner: "{{ jenkins_user }}" group: "{{ jenkins_user }}" + +# Simply prune all podman images every day +# https://osmocom.org/projects/osmocom-servers/wiki/Docker_cache_clean_up +- name: "add cronjob to delete old images" + cron: + name: cleanup-podman-images + disabled: false + minute: "0" + hour: "5" + user: "{{ jenkins_user }}" + job: "podman system prune -a -f >/dev/null" -- To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/30476 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Change-Id: Ib3c7575943b842b6b5a15967c59fa8d0a9b2d6f5 Gerrit-Change-Number: 30476 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith@sysmocom.de> Gerrit-MessageType: newchange
participants (1)
-
osmith