refactor(global_defaults): derive the primary user once for every consumer

This commit is contained in:
2026-10-05 16:54:28 +02:00
parent ef8d50e6be
commit 9aad42a4c2
4 changed files with 20 additions and 13 deletions
+2 -2
View File
@@ -35,8 +35,8 @@
{%- endfor -%}
{{ out }}
community.proxmox.proxmox_kvm:
ciuser: "{{ (system_cfg.users | dict2items | selectattr('value.password', 'defined') | first).key }}"
cipassword: "{{ (system_cfg.users | dict2items | selectattr('value.password', 'defined') | first).value.password }}"
ciuser: "{{ bootstrap_primary_user.name }}"
cipassword: "{{ bootstrap_primary_user.password }}"
ciupgrade: false
vmid: "{{ system_cfg.id }}"
name: "{{ hostname }}"