k8s/roles/uyuni/tasks/helm.yml
mrwho 78103e121e refactor(uyuni): consolidate helm installation logic into dedicated task file
Remove duplicated helm install tasks from main.yml and centralize them in helm.yml, simplifying the role structure and reducing redundancy by consolidating OCI registry and local chart installation paths into a single file.
2026-07-19 16:13:42 +03:00

17 lines
629 B
YAML

---
- name: Helm | Install or upgrade Uyuni from OCI registry
ansible.builtin.command: >
helm upgrade --install uyuni-server oci://registry.opensuse.org/uyuni/server-helm
--namespace {{ uyuni_namespace }}
--create-namespace
--version {{ uyuni_chart_version }}
--set {{ item.key }}={{ item.value }}
--timeout 20m0s
--wait
loop: "{{ uyuni_helm_values | dict2items }}"
environment:
KUBECONFIG: "{{ uyuni_kubeconfig }}"
PATH: "/usr/local/bin:/usr/bin:/bin"
register: _helm_install
changed_when: "'STATUS: deployed' in _helm_install.stdout or 'has been upgraded' in _helm_install.stdout"