From d331e07536b09b5ca05baadb55f754d575ec9c69 Mon Sep 17 00:00:00 2001 From: Sandwich Date: Wed, 30 Oct 2024 15:48:22 +0100 Subject: [PATCH] Fix VMware Network if no VLAN specified --- roles/virtualization/tasks/vmware.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/virtualization/tasks/vmware.yml b/roles/virtualization/tasks/vmware.yml index 90fae2f..52d4596 100644 --- a/roles/virtualization/tasks/vmware.yml +++ b/roles/virtualization/tasks/vmware.yml @@ -34,7 +34,8 @@ type: iso iso_path: "{{ boot_iso }}" networks: - - vlan: "{{ vlan_name }}" + - name: "{{ vm_nif }}" + vlan: "{{ vlan_name | default(omit) }}" type: static ip: "{{ inventory_hostname }}" netmask: "{{ vm_nm | default('255.255.255.0') }}"