From b831eef9ad09ee4119fab23a475cf4b8297c948c Mon Sep 17 00:00:00 2001 From: Sandwich Date: Fri, 22 Mar 2024 07:43:23 +0100 Subject: [PATCH] Make `vm_ballo` optional for libvirt --- roles/virtualization/templates/vm.xml.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/virtualization/templates/vm.xml.j2 b/roles/virtualization/templates/vm.xml.j2 index f0e8531..99e8a49 100644 --- a/roles/virtualization/templates/vm.xml.j2 +++ b/roles/virtualization/templates/vm.xml.j2 @@ -1,7 +1,7 @@ {{ hostname }} {{ vm_memory | int * 1024 }} - {{ vm_ballo | int * 1024 }} + {% if vm_ballo is defined %}{{ vm_ballo | int * 1024 }}{% endif %} {{ vm_cpus }} hvm @@ -52,4 +52,4 @@ - \ No newline at end of file +