diff --git a/roles/virtualization/tasks/vmware.yml b/roles/virtualization/tasks/vmware.yml index 42a0c74..60a365c 100644 --- a/roles/virtualization/tasks/vmware.yml +++ b/roles/virtualization/tasks/vmware.yml @@ -35,10 +35,8 @@ iso_path: "{{ rhel_iso | default(omit) }}" networks: - name: "{{ vm_nif }}" + type: dhcp vlan: "{{ vlan_name | default(omit) }}" - type: static - ip: "{{ inventory_hostname }}" - netmask: "{{ vm_nm | default('255.255.255.0') }}" register: vmware_guest_result failed_when: - vmware_guest_result.failed is defined and vmware_guest_result.failed