mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2026-08-09 07:23:19 +02:00
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.
17 lines
713 B
YAML
17 lines
713 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
|
|
flannel_iface: "{{ 'eth1' if 'eth1' in ansible_facts.interfaces else 'enp0s8' }}"
|
|
# kube-vip cannot infer the cluster interface in these multi-NIC
|
|
# Vagrant guests because the default route is on eth0.
|
|
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
|