From 855226e47f371831f32740ef63ec9138acfee1b9 Mon Sep 17 00:00:00 2001 From: finaldoom <677609+FinalDoom@users.noreply.github.com> Date: Sun, 5 Jan 2025 20:26:41 -0700 Subject: [PATCH] Fetch default interface from ansible facts not just ens0 --- inventory/sample/group_vars/all.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventory/sample/group_vars/all.yml b/inventory/sample/group_vars/all.yml index 8ddeb05af..9bdbdd077 100644 --- a/inventory/sample/group_vars/all.yml +++ b/inventory/sample/group_vars/all.yml @@ -8,7 +8,7 @@ systemd_dir: /etc/systemd/system system_timezone: Your/Timezone # interface which will be used for flannel -flannel_iface: eth0 +flannel_iface: "{{ ansible_facts.default_ipv4.interface | default( 'ens0' ) }}" # uncomment calico_iface to use tigera operator/calico cni instead of flannel https://docs.tigera.io/calico/latest/about # calico_iface: "eth0"