Docker role: Adds step to remove unused Docker images + clean the cache

Use a shell command instead
This commit is contained in:
Maximilian Kratz 2023-08-18 13:08:45 +02:00
parent 89b3e6fe20
commit 55ef7afaf9
1 changed files with 3 additions and 0 deletions

View File

@ -35,3 +35,6 @@
name: '{{ user_name }}'
groups: docker
append: true
- name: Remove unused Docker resources from the system
command: docker image prune -a -f