From 1d351c382a7576e7a8344ef32f5700e26c391b32 Mon Sep 17 00:00:00 2001 From: Harwinder Sekhon Date: Sun, 6 Sep 2026 20:30:10 -0400 Subject: [PATCH] discover_guests: treat any 192.168.x address as LAN, the lab now spans several subnets Claude-Session: https://claude.ai/code/session_01JEczyvRjfakkiDNkbZA7PR --- playbooks/discover_guests.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/playbooks/discover_guests.yml b/playbooks/discover_guests.yml index 6884a09..1af8158 100644 --- a/playbooks/discover_guests.yml +++ b/playbooks/discover_guests.yml @@ -11,7 +11,8 @@ # # Extra vars (optional): # adopt - default false -# lan_prefix - prefix of the LAN, used to pick the right address (default 192.168.2.) +# lan_prefix - address prefix that counts as the LAN; used to pick the right address +# when a guest has several (default 192.168., i.e. any lab subnet) # adopt_ssh_key - public key to push (default: the ansible-key from bootstrap_lxc.yml) - name: Discover Proxmox guests not in inventory @@ -21,7 +22,7 @@ vars: adopt: false - lan_prefix: "192.168.2." + lan_prefix: "192.168." lan_regex: "^{{ lan_prefix | regex_escape }}" adopt_ssh_key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINegitHaQG8i+s412h3wTWf/KvpeX1CEpYFva9MhHR+7 ansible-key" # pct "ostype" -> inventory group