Update var reference #2
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
b087203cfb
commit
59d1730ca5
@ -5,6 +5,7 @@
|
||||
loop:
|
||||
- /opt/metacluster/components/harbor
|
||||
- /opt/metacluster/helm-charts
|
||||
- /opt/metacluster/container-images
|
||||
|
||||
- name: Add helm repositories
|
||||
kubernetes.core.helm_repository:
|
||||
@ -15,7 +16,7 @@
|
||||
|
||||
- name: Fetch helm charts
|
||||
ansible.builtin.command:
|
||||
cmd: helm fetch {{ item.value.chart_name }} --untar --version {{ item.value.version }}
|
||||
cmd: helm fetch {{ item.value.helm_chart }} --untar --version {{ item.value.version }}
|
||||
chdir: /opt/metacluster/helm-charts
|
||||
loop: "{{ lookup('ansible.builtin.dict', components) }}"
|
||||
|
||||
@ -25,4 +26,19 @@
|
||||
- ansible.builtin.debug:
|
||||
var: results
|
||||
|
||||
- name: Parse helm charts for container images
|
||||
ansible.builtin.command:
|
||||
cmd: "{{ item.value.parse_cmd }}" /opt/metacluster/helm-charts/{{ item.key }}/values.yaml"
|
||||
register: containerimages
|
||||
loop: "{{ lookup('ansible.builtin.dict', components) }}"
|
||||
# loop_control:
|
||||
# label: "{{ item.key }}"
|
||||
|
||||
- ansible.builtin.debug:
|
||||
var: containerimages
|
||||
|
||||
# - name: Pull and store containerimages
|
||||
# ansible.builtin.command:
|
||||
# cmd: skopeo copy docker://{{ item }} docker-archive:./{{ ( item | regex_findall('[^/:]+'))[-2] }}.tar:{{ item }}
|
||||
# chdir: /opt/metacluster/container-images
|
||||
# loop: ...
|
||||
|
Loading…
Reference in New Issue
Block a user