Avoid lookup
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Danny Bessems 2022-10-17 14:28:59 +02:00
parent f4d32d7828
commit 716818c23c

View File

@ -58,12 +58,17 @@
url: "{{ item }}"
dest: "/opt/metacluster/manifests/{{ item | basename }}"
loop: "{{ clusterapi_manifests.stdout_lines }}"
loop_control:
label: "{{ item | basename }}"
- name: Parse manifests
ansible.builtin.shell:
cmd: cat {{ item }} | yq --no-doc eval '.. | .image? | select(.)' | awk '!/ /' | sort
cmd: cat {{ item | basename }} | yq --no-doc eval '.. | .image? | select(.)' | awk '!/ /' | sort
chdir: /opt/metacluster/manifests
register: parsedmanifests
loop: "{{ query('ansible.builtin.fileglob', '/opt/metacluster/manifests/*.yaml') | sort }}"
loop: "{{ clusterapi_manifests.stdout_lines | sort }}"
loop_control:
label: "{{ item | basename }}"
- name: Store container images
ansible.builtin.set_fact: