From c4edd14b8aaf65d1db86074b0109b89ae609d4b3 Mon Sep 17 00:00:00 2001 From: binary Date: Wed, 2 Dec 2020 18:36:25 +0100 Subject: Refactor based on bhyve setup --- roles/vmm/templates/vm.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/vmm/templates/vm.conf.j2') diff --git a/roles/vmm/templates/vm.conf.j2 b/roles/vmm/templates/vm.conf.j2 index f9fa6f5..ed20468 100644 --- a/roles/vmm/templates/vm.conf.j2 +++ b/roles/vmm/templates/vm.conf.j2 @@ -18,7 +18,7 @@ switch "{{ vmm.switch.name }}" { {% for vm in vms if hostvars[vm.name] is defined %} {% set guest = hostvars[vm.name] %} vm "{{ guest.ansible_host }}" { - {% if vm.enabled and vm.enabled is defined %} + {% if vm.enable is defined and vm.enable %} enable {% else %} disable -- cgit v1.2.3