I cloned a vmware VM from a template. Now I need to change the network to a different network port group. I tried using vsphere_guest to change the network, but reconfigure only seems to work for CPU, Memory and CDROM. Is there some other way I should do this? Being able to set these sorts of parameters after cloning a VM is critical to me.
tasks:
- vsphere_guest:
 vcenter_hostname: “{{ vcenter_hostname }}”
 username: “{{ vcenter_user }}”
 password: “{{ vcenter_pass }}”
 guest: “MYVM”
 state: reconfigured
 vm_extra_config:
 notes: This is a test VM
 vm_nic:
 nic0:
 network: QANET
network_type: dvs
esxi:
datacenter: MYDATACENTER