Fix VMware Network if no VLAN specified

This commit is contained in:
Sandwich 2024-10-30 15:48:22 +01:00
parent 287036bcb4
commit d331e07536

View File

@ -34,7 +34,8 @@
type: iso type: iso
iso_path: "{{ boot_iso }}" iso_path: "{{ boot_iso }}"
networks: networks:
- vlan: "{{ vlan_name }}" - name: "{{ vm_nif }}"
vlan: "{{ vlan_name | default(omit) }}"
type: static type: static
ip: "{{ inventory_hostname }}" ip: "{{ inventory_hostname }}"
netmask: "{{ vm_nm | default('255.255.255.0') }}" netmask: "{{ vm_nm | default('255.255.255.0') }}"