discover_guests: treat any 192.168.x address as LAN, the lab now spans several subnets

Claude-Session: https://claude.ai/code/session_01JEczyvRjfakkiDNkbZA7PR
This commit is contained in:
Harwinder Sekhon
2026-09-06 20:30:10 -04:00
parent 22311ac70e
commit 1d351c382a
+3 -2
View File
@@ -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