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

-- 
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/afc8cd72-044d-4e61-9260-0d8b9632e991%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to