- 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?