Skip to content

Commit

Permalink
Try to work around removal problems.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Feb 28, 2021
1 parent f045610 commit 1f6c5a8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/integration/targets/docker_image_load/tasks/tests/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,21 @@
state: absent
force_absent: true
loop: "{{ all_images }}"
ignore_errors: true
register: remove_all_images

- name: Prune all images (if removing failed)
docker_prune:
images: true
when: remove_all_images is failed

- name: Remove all images (after pruning)
docker_image:
name: "{{ item }}"
state: absent
force_absent: true
loop: "{{ all_images }}"
when: remove_all_images is failed

- name: Load all images (IDs)
docker_image_load:
Expand Down

0 comments on commit 1f6c5a8

Please sign in to comment.