From 630ee23513c8f1f06f88bbe7810b0f82fc5de0d7 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Sun, 2 Aug 2026 08:25:17 +0100 Subject: auto-detect connection_device_name --- ansible/inventory.yml | 2 -- ansible/vars/common.yml | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/inventory.yml b/ansible/inventory.yml index 860ff05..317352c 100644 --- a/ansible/inventory.yml +++ b/ansible/inventory.yml @@ -11,7 +11,6 @@ ungrouped: 37626438343134636130646239653439303333363665343931373830613661366264316462393137 3438353664653365300a626535303539653166663665356563386234343161313738663534333033 6139 - connection_device_name: eth0 blade-canongate: ansible_host: 192.168.178.75 ansible_ssh_user: canongate @@ -23,4 +22,3 @@ ungrouped: 63326363386631313835306630336535616335336237663831613832663237396661363436643437 3237646663616430340a656137396337303564646333316234623264643963623162623766383131 6338 - connection_device_name: eth0 diff --git a/ansible/vars/common.yml b/ansible/vars/common.yml index e6dc18c..92f334c 100644 --- a/ansible/vars/common.yml +++ b/ansible/vars/common.yml @@ -1,3 +1,5 @@ +connection_device_name: "{{ ansible_facts.default_ipv4.alias }}" + subdomains: - "@" - budget -- cgit v1.2.3