From 2696acca965746e47b12de1333201b1f634f01ea Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sun, 24 May 2020 10:46:14 -0700 Subject: [PATCH] =?UTF-8?q?virt=5Finstance=5Fcreate:=20seems=20we=20cannot?= =?UTF-8?q?=20cast=20lvm=20size=20to=20int,=20as=20we=20use=20units=20in?= =?UTF-8?q?=20a=20number=20of=20host=20vars.=20=F0=9F=98=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kevin Fenzi --- tasks/virt_instance_create.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/virt_instance_create.yml b/tasks/virt_instance_create.yml index 6744cb2538..6e007f1d73 100644 --- a/tasks/virt_instance_create.yml +++ b/tasks/virt_instance_create.yml @@ -17,7 +17,7 @@ when: inventory_hostname not in result.list_vms - name: ensure the lv for the guest is made - lvol: lv={{ inventory_hostname }} vg={{ volgroup }} size={{ lvm_size|int }} state=present + lvol: lv={{ inventory_hostname }} vg={{ volgroup }} size={{ lvm_size }} state=present delegate_to: "{{ vmhost }}" when: inventory_hostname not in result.list_vms