This commit is contained in:
parent
f4d32d7828
commit
716818c23c
@ -58,12 +58,17 @@
|
|||||||
url: "{{ item }}"
|
url: "{{ item }}"
|
||||||
dest: "/opt/metacluster/manifests/{{ item | basename }}"
|
dest: "/opt/metacluster/manifests/{{ item | basename }}"
|
||||||
loop: "{{ clusterapi_manifests.stdout_lines }}"
|
loop: "{{ clusterapi_manifests.stdout_lines }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item | basename }}"
|
||||||
|
|
||||||
- name: Parse manifests
|
- name: Parse manifests
|
||||||
ansible.builtin.shell:
|
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
|
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
|
- name: Store container images
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
|
Loading…
Reference in New Issue
Block a user