mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-07-29 11:55:04 +00:00
Add docker_image_remove module. (#732)
This commit is contained in:
@@ -21,9 +21,8 @@
|
||||
|
||||
always:
|
||||
- name: "Make sure all images are removed"
|
||||
docker_image:
|
||||
docker_image_remove:
|
||||
name: "{{ item }}"
|
||||
state: absent
|
||||
with_items: "{{ inames }}"
|
||||
- name: "Make sure all containers are removed"
|
||||
docker_container:
|
||||
|
||||
@@ -7,9 +7,8 @@
|
||||
image_name: registry.example.com:5000/foo/bar:baz
|
||||
block:
|
||||
- name: Make sure image is not present
|
||||
docker_image:
|
||||
docker_image_remove:
|
||||
name: "{{ image_name }}"
|
||||
state: absent
|
||||
|
||||
- name: Push non-existing image (must fail)
|
||||
docker_image_push:
|
||||
|
||||
Reference in New Issue
Block a user