Hi all,
Ansible version used : 2.4.1.0
I am experiencing some strange behaviour using vmware_guest to create a new VM from a template, compared to updating a previously createdVM :
I am trying to create a VM from a template (connecting to vCenter 6.0u2, the template being a RHEL 7.3); this template has only one network interface, and I want to add a new NIC in my playbook (by specifying its type, IP, …)
When I create the VM from the template (setting 2 NICs in playbook), all is OK : the VM is OK, the new interface is created and I have both network configuration scripts created and working (/etc/sysconfig/network-script/ifcfg-en*)
However, on a freshly created VM which only has one network interface, when updating it with vmware_guest module to add another NIC, the interface is correctly added to the VM, but the interface is not configured on the guest side (ifcfg-en224 script is not created, no IP configured).
It also seems that changing a NIC IP does not get propagated to the ifcfg- script, and the IP is not updated on guest.
Do you have any clue on where the issue could come from ? It seems to work perfectly on disks (adding, resizing a disk is ok), but not on network interfaces.
Regards,
Bruno