feat(pb,role,task): adds storage validation and uses it in LXC and VM deployment

This commit is contained in:
2026-09-19 14:28:56 +04:00
parent 130fcb5069
commit 8530b93fea
5 changed files with 33 additions and 3 deletions
+4 -2
View File
@@ -22,8 +22,10 @@
# This is minimal requirement for rootfs
# It might be resized later
size: 4 # 4GB rootfs
# We put rootfs on fast local storage (NVMe SSD)
storage: local
# We put rootfs on user-selected sotrage
storage: "{{ guest_storage }}"
# We need timeout in case a slow storage is used, since it may cause a significant delay
timeout: 90
pubkey: "{{ lookup('file', lookup('env', 'HOME') + '/.ssh/ansible_key.pub') }}"
netif:
net0: "name=eth0,gw=192.168.0.1,ip={{ guest_ip_address }}/{{ guest_netmask }},bridge=vmbr0"