Skip to content

Commit 3e63d78

Browse files
committedSep 23, 2024
fix docker prune playbook
1 parent f7552a3 commit 3e63d78

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed
 

‎ansible/playbooks/docker-prune.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
hosts: all
44
become: true
55
tasks:
6-
- name: Prune unused Docker images
7-
docker_image:
8-
name: all
9-
state: absent
10-
force: yes
11-
prune: yes
6+
- name: Prune unused Docker images using shell
7+
shell: docker image prune -f
8+
args:
9+
warn: false

0 commit comments

Comments
 (0)
Please sign in to comment.