Here is my play -
tasks:
- name: Deploy an instance
vsphere_guest:
vcenter_hostname: 10.171.52.38
username: testuser
password: test
guest: newvm001
from_template: yes
template_src: Ubuntu 14.04
power_on_after_clone: No
resource_pool: "/Resources"
validate_certs: no
As per the VMware community , “To be able clone a virtual machine, you must be connected to vCenter Server. You cannot clone virtual machines if you connect directly to an ESXi host” SO we will require vCenter access to clone this it seems.