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
|
||||
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:
|
||||
|
||||
- name: Retrieve Cluster-API manifests
|
||||
- name: Lookup ClusterAPI manifests
|
||||
ansible.builtin.shell:
|
||||
cmd: clusterctl config repositories | awk '/CoreProvider|kubeadm|vsphere/ {print $(NF-1)"download/"$NF}'
|
||||
register: clusterapi_manifests
|
||||
@ -70,15 +61,18 @@
|
||||
loop_control:
|
||||
label: "{{ item | basename }}"
|
||||
|
||||
- debug:
|
||||
var: parsedmanifests
|
||||
|
||||
- name: Store container images
|
||||
ansible.builtin.set_fact:
|
||||
clusterapi_containerimages: "{{ parsedmanifests.results | json_query('results[*].stdout') }}"
|
||||
clusterapi_containerimages: "{{ parsedmanifests | json_query('results[*].stdout') }}"
|
||||
|
||||
- debug:
|
||||
var: clusterapi_containerimages
|
||||
- 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 }}"
|
||||
|
||||
- name: Pull and store containerimages
|
||||
ansible.builtin.shell:
|
||||
|
Loading…
Reference in New Issue
Block a user