Fix mgmt VM nameserver argument; record first vm run

mgmt_dns is a list, passed to qm create as one space-separated argument.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-27 09:31:57 +02:00
co-authored by Claude Opus 5.5
parent 66d61b21fc
commit bfc0a9e15d
3 changed files with 25 additions and 5 deletions
+4 -4
View File
@@ -18,12 +18,12 @@ proxmox_bridge: vmbr0
proxmox_vlan: 4
# Management VM (VLAN 4). Fill in the empty values before the first run.
mgmt_vmid: ""
mgmt_vmid: "201"
mgmt_name: lab-mgmt
mgmt_ip: ""
mgmt_ip: "192.168.4.21"
mgmt_prefix: 24
mgmt_gateway: ""
mgmt_dns: ""
mgmt_gateway: "192.168.4.8"
mgmt_dns: ["8.8.8.8", "2.2.2.2"]
mgmt_cores: 2
mgmt_memory_mib: 4096
mgmt_disk_size: 30G
+1 -1
View File
@@ -55,7 +55,7 @@
--ciuser ubuntu
--sshkeys /root/{{ mgmt_name }}.pub
--ipconfig0 ip={{ mgmt_ip }}/{{ mgmt_prefix }},gw={{ mgmt_gateway }}
--nameserver {{ mgmt_dns }}
--nameserver '{{ mgmt_dns | join(' ') }}'
changed_when: true
- name: Grow the disk