mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-03-22 02:29:08 +00:00
Support SHA256 tag for podman images (#570)
Fix #569 Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
parent
bb4b14bc5d
commit
d5f7655464
2 changed files with 14 additions and 1 deletions
|
|
@ -152,6 +152,18 @@
|
|||
- specific_image2 is not changed
|
||||
- "'v3.3.11' in images.stdout"
|
||||
|
||||
- name: Get info about pulled image
|
||||
containers.podman.podman_image_info:
|
||||
executable: "{{ test_executable | default('podman') }}"
|
||||
name: quay.io/coreos/etcd:v3.3.11
|
||||
register: sha_image_info
|
||||
|
||||
- name: Pull image with SHA256 tag
|
||||
containers.podman.podman_image:
|
||||
executable: "{{ test_executable | default('podman') }}"
|
||||
name: "quay.io/coreos/etcd@{{ sha_image_info.images.0.Digest }}" #quay.io/coreos/coreos-installer:latest
|
||||
state: present
|
||||
|
||||
- name: Create a build directory with a subdirectory
|
||||
file:
|
||||
path: /var/tmp/build/subdir
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue