vmware_guest - unsupported parameter for module: networks

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?

Hi,

It's parameter is planned to be supported in v2.3( Release Target:
February/March 2017 ).

http://docs.ansible.com/ansible/vmware_guest_module.html

Thanks,

Tk

I see. I new it was for version 2.3, but i though that would already be implemented in the devel branch, that’s why i tried with latest git clone.

Thanks anyway.