Add missing kubeconfig key
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2022-06-28 11:53:17 +02:00
parent 4616b9b070
commit 6917e0799a

View File

@ -48,25 +48,36 @@
- name: Import container images - name: Import container images
ansible.builtin.command: ansible.builtin.command:
cmd: k3s ctr image import {{ item }} cmd: k3s ctr image import {{ item }}
chdir: /opt/metacluster/container_images chdir: /opt/metacluster/container-images
loop: "{{ imagetarballs.files }}" loop: "{{ imagetarballs.files }}"
- name: Delete redundant files - name: Delete redundant files
ansible.builtin.file: ansible.builtin.file:
path: /opt/metacluster/container_images path: /opt/metacluster/container-images
state: absent state: absent
- name: Install longhorn chart - name: Install longhorn chart
kubernetes.core.helm: kubernetes.core.helm:
name: longhorn name: longhorn
chart_ref: /opt/metacluster/helm_charts/longhorn chart_ref: /opt/metacluster/helm-charts/longhorn
release_namespace: longhorn release_namespace: longhorn-system
create_namespace: yes create_namespace: yes
kubeconfig: "{{ kubeconfig.path }}"
values: values:
ingress: ingress:
enabled: true enabled: true
host: storage.{{ vapp['guestinfo.fqdn'] }} host: storage.{{ vapp['guestinfo.fqdn'] }}
- name: Install harbor chart
kubernetes.core.helm:
name: harbor
chart_ref: /opt/metacluster/helm-charts/harbor
release_namespace: harbor
create_namespace: yes
kubeconfig: "{{ kubeconfig.path }}"
values:
# foo: bar
- name: Cleanup tempfile - name: Cleanup tempfile
ansible.builtin.file: ansible.builtin.file:
path: "{{ kubeconfig.path }}" path: "{{ kubeconfig.path }}"