Hello,
I am using the vmware_guest module to change a port group on a VM and it is taking over a minute to change the port group for each VM. Below is the playbook:
- name: “Change VM port group in vCenter DC {{ item[‘vcenter_dc’] }}”
vmware_guest:
hostname: “{{ inventory_hostname }}”
username: “{{ vcenter_username }}”
password: “{{ vcenter_password }}”
validate_certs: no
datacenter: “{{ item[‘vcenter_dc’] }}”
name: “{{ vm }}”
folder: “/{{ item[‘vcenter_dc’] }}/vm/ACI Training”
networks: - name: “VM Network”
wait_for_ip_address: no
with_items: - “{{ student_vms }}”
loop_control:
loop_var: vm
delegate_to: localhost
I have tried running this on the latest version 2.8.0 as well as latest Dev branch 2.9.0.dev0. In researching this I saw there was some mention of duplicate VM names possibly causing issues. There are no duplicate VM names inside each VMware Datacenter, however the names are duplicated across Datacenters. Has anyone else experienced this and have a solution?
Thanks,
Matt