fix error when node_image caching is used with crictl
parent
08a0541c75
commit
d509ef65ae
|
@ -2,8 +2,8 @@
|
|||
- name: Download | Set node_images (crictl)
|
||||
set_fact:
|
||||
node_images: >-
|
||||
"{{
|
||||
{{
|
||||
(node_images | default([])) +
|
||||
[{'Digest': (item.repoDigests[0] | split('@'))[1], 'Repository': ((item.repoTags[0] | split(':'))[0] | regex_replace('^docker\.io/(library/)?', '')), 'Tag': (item.repoTags[0] | split(':'))[1]}]
|
||||
}}"
|
||||
}}
|
||||
with_items: "{{ (node_images_raw.stdout | from_json).images }}"
|
||||
|
|
Loading…
Reference in New Issue