forked from tim/k3s-ansible
5c288e8f3e
- Avoid concurrent SSH startup bursts against the disposable guests. - Ensure every guest gathers interface facts before network setup. - Prevent unreachable hosts from falling back to the default eth0 interface.
19 lines
765 B
YAML
19 lines
765 B
YAML
---
|
|
- name: Apply overrides
|
|
hosts: all
|
|
serial: 1
|
|
tasks:
|
|
- name: Override host variables
|
|
ansible.builtin.set_fact:
|
|
# See:
|
|
# https://github.com/flannel-io/flannel/blob/67d603aaf45ef80f5dd39f43714fc5e6f8a637eb/Documentation/troubleshooting.md#Vagrant
|
|
calico_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.224
|
|
metal_lb_ip_range: 192.168.30.100-192.168.30.109
|