Closed gcraenen closed 1 year ago
Scripts run without error and k8s cluster is provisioned, but:
TASK [k3s/master : Copy vip manifest to first master] ***** Saturday 12 November 2022 15:28:54 +0000 (0:00:00.848) 0:00:27.347 * [WARNING]: an unexpected error occurred during Jinja2 environment setup: unable to locate collection ansible.utils skipping: [k8s-master02.calmus.one] fatal: [k8s-master01.calmus.one]: FAILED! => changed=false msg: |- AnsibleError: template error while templating string: unable to locate collection ansible.utils. String: apiVersion: apps/v1 kind: DaemonSet metadata: name: kube-vip-ds namespace: kube-system spec: selector: matchLabels: name: kube-vip-ds template: metadata: labels: name: kube-vip-ds spec: affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms:
Found it. Galaxy install was not ok and had to be reinstalled.
Scripts run without error and k8s cluster is provisioned, but:
Current Behavior
TASK [k3s/master : Copy vip manifest to first master] ***** Saturday 12 November 2022 15:28:54 +0000 (0:00:00.848) 0:00:27.347 * [WARNING]: an unexpected error occurred during Jinja2 environment setup: unable to locate collection ansible.utils skipping: [k8s-master02.calmus.one] fatal: [k8s-master01.calmus.one]: FAILED! => changed=false msg: |- AnsibleError: template error while templating string: unable to locate collection ansible.utils. String: apiVersion: apps/v1 kind: DaemonSet metadata: name: kube-vip-ds namespace: kube-system spec: selector: matchLabels: name: kube-vip-ds template: metadata: labels: name: kube-vip-ds spec: affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: