Skip to content

Commit

Permalink
Remove archive after image is pushed to save space
Browse files Browse the repository at this point in the history
  • Loading branch information
to-bar committed Jun 27, 2020
1 parent c76f5e5 commit 8f7d560
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,10 @@
when:
- docker_image.name != specification.registry_image.name

- name: Remove downloaded image archive {{ docker_image.file_name }}
file:
path: "{{ download_directory }}/{{ docker_image.file_name }}"
state: absent

when:
- image_check.stdout | length == 0

0 comments on commit 8f7d560

Please sign in to comment.