It is possible.
Seems that you are missing a few parameters
tasks:
- name: Create VM from template
vmware_guest:
hostname: "{{vcenter_IP}}"
username: "{{vcenter_user}}"
password: "{{vcenter_pass}}"
validate_certs: no
datacenter: "{{vcenter_datacenter}}"
cluster: "{{vcenter_cluster}}"
resource_pool: "{{ vcenter_resource_pool }}"
folder: "{{folder}}"
name: "{{hostname}}"
state: poweredoff
template: "{{template}}"
hardware:
memory_mb: "{{ram}}"
num_cpus: "{{vcpu}}"
What are the error messages you have ?