
It fails with the error: `No module named 'yaml'`. So let's use native helm with the ansible shell instead. Change-Id: If652d603cfcaeb0b70c9b566b90d98e627d3bada
18 lines
535 B
YAML
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 }}"
|
|
...
|