mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2026-08-08 23:13:19 +02:00
dfcfbc1f3f
- Use eth1 for Ubuntu and Debian Bento guests when present. - Keep enp0s8 for Rocky Linux guests and other images. - Apply the selection consistently across all Molecule scenarios.
18 lines
753 B
YAML
18 lines
753 B
YAML
---
|
|
- name: Apply overrides
|
|
hosts: all
|
|
tasks:
|
|
- name: Override host variables
|
|
ansible.builtin.set_fact:
|
|
# See:
|
|
# https://github.com/flannel-io/flannel/blob/67d603aaf45ef80f5dd39f43714fc5e6f8a637eb/Documentation/troubleshooting.md#Vagrant
|
|
cilium_iface: "{{ 'eth1' if 'eth1' in ansible_facts.interfaces else 'enp0s8' }}"
|
|
kube_vip_iface: "{{ 'eth1' if 'eth1' in ansible_facts.interfaces else 'enp0s8' }}"
|
|
|
|
# The test VMs might be a bit slow, so we give them more time to join the cluster:
|
|
retry_count: 45
|
|
|
|
# Make sure that our IP ranges do not collide with those of the other scenarios
|
|
apiserver_endpoint: 192.168.30.225
|
|
metal_lb_ip_range: 192.168.30.110-192.168.30.119
|