mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
c2be342ce1
* Add podman_image and podman_image_info modules * Add integration test for podman_image_info * Change parameter names per feedback * Add integration tests for podman_image
26 lines
726 B
YAML
26 lines
726 B
YAML
- name: Test podman_image_info
|
|
when:
|
|
- ansible_facts.virtualization_type != 'docker'
|
|
- ansible_facts.distribution == 'RedHat'
|
|
block:
|
|
- name: Pull image
|
|
command: podman pull quay.io/coreos/etcd
|
|
|
|
- name: Get info on all images
|
|
podman_image_info:
|
|
register: all_image_result
|
|
|
|
- name: Pull another image
|
|
command: podman pull quay.io/coreos/dnsmasq
|
|
|
|
- name: Get info on specific image
|
|
podman_image_info:
|
|
name: dnsmasq
|
|
register: named_image_result
|
|
|
|
- name:
|
|
assert:
|
|
that:
|
|
- all_image_result.images | length > 0
|
|
- named_image_result.images | length == 1
|
|
- "'dnsmasq' in named_image_result.images[0]['RepoTags'][0]"
|