blob: 48c759f1f2eb097e04164e15db8c35cd0f347128 (
plain)
1
2
3
4
5
6
7
8
9
|
- name: Attach a VM to a dvswitch
vmware.vmware_rest.vcenter_vm_hardware_ethernet:
vm: '{{ test_vm1_info.id }}'
pci_slot_number: 4
backing:
type: DISTRIBUTED_PORTGROUP
network: "{{ my_portgroup_info.dvs_portgroup_info.dvswitch1[0].key }}"
start_connected: false
register: vm_hardware_ethernet_1
|