Fix loop var;Fix template vars
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
09c4a17050
commit
22c06e2388
@ -71,20 +71,17 @@
|
||||
loop_control:
|
||||
label: "{{ item.url | basename }}"
|
||||
|
||||
- debug:
|
||||
var: clusterapi_manifests
|
||||
# - name: Parse manifests
|
||||
# ansible.builtin.shell:
|
||||
# cmd: cat {{ item | basename }} | yq --no-doc eval '.. | .image? | select(.)' | awk '!/ /' | sort
|
||||
# chdir: /opt/metacluster/manifests
|
||||
# register: parsedmanifests
|
||||
# loop: "{{ clusterapi_manifests.stdout_lines | sort }}"
|
||||
# loop_control:
|
||||
# label: "{{ item | basename }}"
|
||||
- name: Parse manifests
|
||||
ansible.builtin.shell:
|
||||
cmd: cat {{ item.dest }} | yq --no-doc eval '.. | .image? | select(.)' | awk '!/ /' | sort
|
||||
register: parsedmanifests
|
||||
loop: "{{ clusterapi_manifests.results | sort }}"
|
||||
loop_control:
|
||||
label: "{{ item | basename }}"
|
||||
|
||||
# - name: Store container images
|
||||
# ansible.builtin.set_fact:
|
||||
# clusterapi_containerimages: "{{ parsedmanifests | json_query('results[*].stdout') }}"
|
||||
- name: Store container images
|
||||
ansible.builtin.set_fact:
|
||||
clusterapi_containerimages: "{{ parsedmanifests | json_query('results[*].stdout') }}"
|
||||
|
||||
- name: Configure clusterctl
|
||||
ansible.builtin.template:
|
||||
@ -93,12 +90,12 @@
|
||||
vars:
|
||||
_template:
|
||||
hv:
|
||||
fqdn: vapp['hv.fqdn']
|
||||
username: vapp['hv.username']
|
||||
password: vapp['hv.password']
|
||||
fqdn: "{{ vapp['hv.fqdn'] }}"
|
||||
username: "{{ vapp['hv.username'] }}"
|
||||
password: "{{ vapp['hv.password'] }}"
|
||||
version:
|
||||
base: components.clusterapi.manifest.version.base
|
||||
infrastructure_vsphere: components.clusterapi.manifest.version.infrastructure_vsphere
|
||||
base: "{{ components.clusterapi.manifest.version.base }}"
|
||||
infrastructure_vsphere: "{{ components.clusterapi.manifest.version.infrastructure_vsphere }}"
|
||||
|
||||
- name: Parse helm charts for container images
|
||||
ansible.builtin.shell:
|
||||
|
Loading…
Reference in New Issue
Block a user