vsphere_guest adding disk and vnic

66 views
Skip to first unread message

Kresimir Petrovic

unread,
Jan 3, 2017, 8:27:04 PM1/3/17
to Ansible Project
Is adding additional disk and nic supported on vsphere_guest module. I successfully created task that creates virtual machine with single disk and two vnics.
I created additional task and using "state: reconfigured" and I tried to add new disk and one new vnic.

First time i run this thask it fails with:
"Error in vm_disk definition. Too many disks defined in comparison to the VM's disk profile." but nevertheless new disks is created (new nic is missing).

When I run the task second time there is no error and I get "changed=1" every time I run it again but new nic never appears.:


Is adding disks and nics to existing VM supported on vsphere_guest module or this is some kind of bug. I'm running ansible 2.2.0.0

Thanks
Reply all
Reply to author
Forward
0 new messages