Remove debugging; Cleanup redundant logic;Add vapp property
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-06-27 20:26:09 +02:00
parent 4ba7b590ba
commit 8cbfcb016b
4 changed files with 42 additions and 15 deletions

View File

@ -56,6 +56,17 @@
path: /opt/metacluster/container_images
state: absent
- name: Install longhorn chart
kubernetes.core.helm:
name: longhorn
chart_ref: /opt/metacluster/helm_charts/longhorn
release_namespace: longhorn
create_namespace: yes
values:
ingress:
enabled: true
host: storage.{{ vapp['guestinfo.fqdn'] }}
- name: Cleanup tempfile
ansible.builtin.file:
path: "{{ kubeconfig.path }}"

View File

@ -21,17 +21,10 @@
loop_control:
label: "{{ item.key }}"
- ansible.builtin.command:
cmd: ls /opt/metacluster/helm-charts -lashR
register: result
- ansible.builtin.debug:
var: result
- name: Parse helm charts for container images
ansible.builtin.shell:
cmd: "{{ item.value.helm.parse_logic }}"
chdir: /opt/metacluster/helm-charts/{{ item.key }}
# chdir: /opt/metacluster/helm-charts/{{ item.value.helm.basedir | default(item.key) }}
register: containerimages
loop: "{{ lookup('ansible.builtin.dict', components) }}"
loop_control: