diff --git a/roles/download/tasks/set_node_facts_crictl.yml b/roles/download/tasks/set_node_facts_crictl.yml index dc4218e2b..2609c7bde 100644 --- a/roles/download/tasks/set_node_facts_crictl.yml +++ b/roles/download/tasks/set_node_facts_crictl.yml @@ -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 }}"