Vladimir Kozhukalov c8e87da4ae [deploy-env] Do not use kubernetes.core ansible module
It fails with the error: `No module named 'yaml'`.
So let's use native helm with the ansible shell instead.

Change-Id: If652d603cfcaeb0b70c9b566b90d98e627d3bada
2025-03-11 13:17:54 -05:00

18 lines
535 B
YAML

---
- name: Add Flannel Helm repo
become_user: "{{ kubectl.user }}"
when: inventory_hostname in (groups['primary'] | default([]))
block:
- name: Add Flannel chart repo
shell: |
helm repo add flannel https://flannel-io.github.io/flannel/
- name: Install Flannel
shell: |
helm upgrade --install flannel flannel/flannel \
--version {{ flannel_version }} \
--namespace kube-flannel \
--create-namespace \
--set podCidr="{{ kubeadm.pod_network_cidr }}"
...