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
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/6a4cd446-adf8-4e4d-a1a6-aadb32070325%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.