Test injecting dictionaries into yaml file
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
6e6e7900da
commit
e3e46bae7d
@ -0,0 +1,2 @@
|
||||
components:
|
||||
|
@ -23,6 +23,16 @@
|
||||
loop_control:
|
||||
label: "{{ item.key }}"
|
||||
|
||||
- name: Inject chart values into ansible var files
|
||||
ansible.builtin.lineinfile:
|
||||
path: /opt/firstboot/ansible/vars/metacluster.yml
|
||||
block: |2
|
||||
{{ item.key }}:
|
||||
{{ item.value.chart_values }}
|
||||
loop: "{{ lookup('ansible.builtin.dict', components) }}"
|
||||
loop_control:
|
||||
label: "{{ item.key }}"
|
||||
|
||||
- name: Parse helm charts for container images
|
||||
ansible.builtin.shell:
|
||||
cmd: "{{ item.value.helm.parse_logic }}"
|
||||
|
Loading…
Reference in New Issue
Block a user