Fix variable references
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
65346db100
commit
4733d8e5f8
@ -37,18 +37,9 @@
|
|||||||
dest: /opt/firstboot/ansible/vars/metacluster.yml
|
dest: /opt/firstboot/ansible/vars/metacluster.yml
|
||||||
content: "{{ { 'components': chart_values } | to_nice_yaml(indent=2, width=4096) }}"
|
content: "{{ { 'components': chart_values } | to_nice_yaml(indent=2, width=4096) }}"
|
||||||
|
|
||||||
- name: Parse helm charts for container images
|
|
||||||
ansible.builtin.shell:
|
|
||||||
cmd: "{{ item.value.helm.parse_logic }}"
|
|
||||||
chdir: /opt/metacluster/helm-charts/{{ item.key }}
|
|
||||||
register: containerimages
|
|
||||||
loop: "{{ lookup('ansible.builtin.dict', components) }}"
|
|
||||||
loop_control:
|
|
||||||
label: "{{ item.key }}"
|
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
|
|
||||||
- name: Retrieve Cluster-API manifests
|
- name: Lookup ClusterAPI manifests
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
cmd: clusterctl config repositories | awk '/CoreProvider|kubeadm|vsphere/ {print $(NF-1)"download/"$NF}'
|
cmd: clusterctl config repositories | awk '/CoreProvider|kubeadm|vsphere/ {print $(NF-1)"download/"$NF}'
|
||||||
register: clusterapi_manifests
|
register: clusterapi_manifests
|
||||||
@ -70,15 +61,18 @@
|
|||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item | basename }}"
|
label: "{{ item | basename }}"
|
||||||
|
|
||||||
- debug:
|
|
||||||
var: parsedmanifests
|
|
||||||
|
|
||||||
- name: Store container images
|
- name: Store container images
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
clusterapi_containerimages: "{{ parsedmanifests.results | json_query('results[*].stdout') }}"
|
clusterapi_containerimages: "{{ parsedmanifests | json_query('results[*].stdout') }}"
|
||||||
|
|
||||||
- debug:
|
- name: Parse helm charts for container images
|
||||||
var: clusterapi_containerimages
|
ansible.builtin.shell:
|
||||||
|
cmd: "{{ item.value.helm.parse_logic }}"
|
||||||
|
chdir: /opt/metacluster/helm-charts/{{ item.key }}
|
||||||
|
register: containerimages
|
||||||
|
loop: "{{ lookup('ansible.builtin.dict', components) }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.key }}"
|
||||||
|
|
||||||
- name: Pull and store containerimages
|
- name: Pull and store containerimages
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
|
Loading…
Reference in New Issue
Block a user