discover_guests: treat any 192.168.x address as LAN, the lab now spans several subnets
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JEczyvRjfakkiDNkbZA7PR
This commit is contained in:
@@ -11,7 +11,8 @@
|
|||||||
#
|
#
|
||||||
# Extra vars (optional):
|
# Extra vars (optional):
|
||||||
# adopt - default false
|
# 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)
|
# adopt_ssh_key - public key to push (default: the ansible-key from bootstrap_lxc.yml)
|
||||||
|
|
||||||
- name: Discover Proxmox guests not in inventory
|
- name: Discover Proxmox guests not in inventory
|
||||||
@@ -21,7 +22,7 @@
|
|||||||
|
|
||||||
vars:
|
vars:
|
||||||
adopt: false
|
adopt: false
|
||||||
lan_prefix: "192.168.2."
|
lan_prefix: "192.168."
|
||||||
lan_regex: "^{{ lan_prefix | regex_escape }}"
|
lan_regex: "^{{ lan_prefix | regex_escape }}"
|
||||||
adopt_ssh_key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINegitHaQG8i+s412h3wTWf/KvpeX1CEpYFva9MhHR+7 ansible-key"
|
adopt_ssh_key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINegitHaQG8i+s412h3wTWf/KvpeX1CEpYFva9MhHR+7 ansible-key"
|
||||||
# pct "ostype" -> inventory group
|
# pct "ostype" -> inventory group
|
||||||
|
|||||||
Reference in New Issue
Block a user