Hi,
I’m trying to execute this playbook with the latest version from git:
Create a VM from a template
- hosts: 127.0.0.1
connection: local
gather_facts: no
tasks: - name: create the VM
vmware_guest:
hostname: XXX.XXX.XXX.XXX
username: administrator@vsphere.local
password: XXXXXXXX
validate_certs: no
esxi_hostname: XXX.XXX.XXX.XXX
datacenter: DATACENTER
folder: /TEST
name: testvm_ansible
state: poweredoff
hardware:
memory_mb: 512
num_cpus: 1
scsi: paravirtual
disk: - size_kb: 279552
type: thin
datastore: datastore1 - size_gb: 10
type: thin
datastore: datastore1
networks: - name: DPG-Lan
ip: XXX.XXX.XXX.XXX
netmask: 255.255.255.0
gateway: XXX.XXX.XXX.XXX
template: Template_CentOS_7_x86_64
wait_for_ip_address: yes
register: deploy - debug: var=deploy
But i get this error:
},
“msg”: “unsupported parameter for module: networks”
}
Any ideas what could be wrong?