Problem with vsphere_guest on vm_extra_config and state reconfigured

284 views
Skip to first unread message

Timo

unread,
Sep 10, 2015, 10:24:28 AM9/10/15
to Ansible Project
Dear list,

i want to change a parameter in the vm_extra_config from what i understand will modify my .vmx of my VM.

This is my part of the vm_extra_config:

       vm_extra_config:
          notes: "{{ notes }}"
          vcpu.hotadd: yes
          mem.hotadd:  yes
          folder: "{{ folder }}"
          tools.upgrade.policy: upgradeAtPowerCycle

Everything works fine, till to the last entry.
By no chance it will be changed with 
      state: reconfigured
or got it from the beginning with
      state: present (create new VM)

Second problem, also with 
      state: reconfigured
if i change a parameter in 
     network: Portgroup
to a new value (New_Portgroup) it does also not recognizes it.
In fact it disconnects the adapter from the vSwitch in the end.
But it always says, OK after the run without the change of the portgroup for this adapter.

If i change for example CPU-Count, RAM, Disk etc. this works fine.

So any ideas how to get the new parameters into the .vmx?
And how to change a portgroup with state: reconfigured?
Or do i have to do this with state: present?

Right now i am on:  ansible 1.9.3

Thx a lot in advance!

Timo



Timo

unread,
Sep 15, 2015, 2:42:55 AM9/15/15
to Ansible Project
Hi,

no one any ideas on that?

Thx!

Timo

pax pacis

unread,
Oct 6, 2015, 8:39:38 AM10/6/15
to Ansible Project
Hi Timo,

I have the same issue at the moment, I can not change any of the network configuration or even add/change the notes. Adding a CPU or changing disk or memory is working.

Also I do not get any errors on the network change.

Op dinsdag 15 september 2015 08:42:55 UTC+2 schreef Timo:
Reply all
Reply to author
Forward
0 new messages