Skip to content

Commit ffdb053

Browse files
committed
Removing unused Docker Images in Ansible docker role
1 parent fa9d5e5 commit ffdb053

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ansible/roles/docker/tasks/main.yml

+5
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@
7070
enabled: true
7171
ignore_errors: "{{ ansible_check_mode }}"
7272

73+
- name: Remove unused Docker Images (not currently running)
74+
ansible.builtin.shell: docker image prune -a -f
75+
args:
76+
executable: /bin/bash
77+
7378
- name: Checkout Repo
7479
git:
7580
repo=https://github.com/kryptokrona/hugin-api.git

0 commit comments

Comments
 (0)