Added role cleanup-docker-anonymous-volumes

This commit is contained in:
2025-04-07 15:25:30 +02:00
parent 0b42193d3c
commit aceb111f86
3 changed files with 62 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
- name: install dockreap
command:
cmd: "pkgmgr install dockreap"
when: run_once_cleanup_docker_anonymous_volumes is not defined
- name: run dockreap with --no-confirmation
command:
cmd: "dockreap --no-confirmation"
when: run_once_cleanup_docker_anonymous_volumes is not defined
- name: mark dockreap as run
set_fact:
run_once_cleanup_docker_anonymous_volumes: true
when: run_once_cleanup_docker_anonymous_volumes is not defined