oci-registry-prune: run the delete_old_oci_images locally on batcave
Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
parent
986d7fb885
commit
5e7a0645c8
1 changed files with 5 additions and 4 deletions
|
@ -17,10 +17,11 @@
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- name: Find and Delete 30 days old OCI images
|
- name: Find and Delete 30 days old OCI images
|
||||||
delete_old_oci_images:
|
local_action: >
|
||||||
days: 30
|
delete_old_oci_images
|
||||||
username: "{{candidate_registry_osbs_prod_username}}"
|
days=30
|
||||||
password: "{{candidate_registry_osbs_prod_password}}"
|
username="{{candidate_registry_osbs_prod_username}}"
|
||||||
|
password="{{candidate_registry_osbs_prod_password}}"
|
||||||
|
|
||||||
- name: Run registry garbage collection to reclaim disk space
|
- name: Run registry garbage collection to reclaim disk space
|
||||||
command: "registry garbage-collect /etc/docker-distribution/registry/config.yml"
|
command: "registry garbage-collect /etc/docker-distribution/registry/config.yml"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue