Test injecting dictionaries into yaml file
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Danny Bessems 2022-07-04 13:26:35 +02:00
parent 6e6e7900da
commit e3e46bae7d
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,2 @@
components:

View File

@ -23,6 +23,16 @@
loop_control: loop_control:
label: "{{ item.key }}" 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 - name: Parse helm charts for container images
ansible.builtin.shell: ansible.builtin.shell:
cmd: "{{ item.value.helm.parse_logic }}" cmd: "{{ item.value.helm.parse_logic }}"