mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Added role cleanup-docker-anonymous-volumes
This commit is contained in:
14
roles/cleanup-docker-anonymous-volumes/tasks/main.yml
Normal file
14
roles/cleanup-docker-anonymous-volumes/tasks/main.yml
Normal 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
|
Reference in New Issue
Block a user