mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2026-08-08 23:13:19 +02:00
db85fa960c
* fix(metallb): guard cilium_bgp variable before evaluating - The 'Deploy metallb manifest' and 'Deploy metallb pool' conditionals evaluate 'not cilium_bgp' directly, which raises an undefined-variable error when the k3s_server role runs without cilium_bgp in scope and no Cilium variables are set - Guard with 'cilium_bgp is not defined' so the condition resolves cleanly when Cilium BGP is not configured - Fixes #644 * docs(apiserver): clarify apiserver_endpoint must be a free routable IP - Note that apiserver_endpoint must be an unassigned, routable IP on the network and that it is exposed by kube-vip / MetalLB - Fixes #678 * fix(molecule): wait for MetalLB resources before asserting images - The MetalLB image-tag assertion crashed with 'list object has no element 0' when the controller Deployment was not yet observable at verify time - Retry the MetalLB controller/speaker lookup until the resources appear - Fail with a clear message if MetalLB is genuinely absent
21 lines
570 B
YAML
21 lines
570 B
YAML
---
|
|
- name: Deploy calico
|
|
ansible.builtin.include_tasks: calico.yml
|
|
tags: calico
|
|
when: calico_iface is defined and cilium_iface is not defined
|
|
|
|
- name: Deploy cilium
|
|
ansible.builtin.include_tasks: cilium.yml
|
|
tags: cilium
|
|
when: cilium_iface is defined
|
|
|
|
- name: Deploy metallb pool
|
|
ansible.builtin.include_tasks: metallb.yml
|
|
tags: metallb
|
|
when: kube_vip_lb_ip_range is not defined and (cilium_bgp is not defined or cilium_iface is not defined)
|
|
|
|
- name: Remove tmp directory used for manifests
|
|
ansible.builtin.file:
|
|
path: /tmp/k3s
|
|
state: absent
|