vmware_guest - unsupported parameter for module: networks

381 views
Skip to first unread message

Ricardo Esteves

unread,
Feb 13, 2017, 5:10:21 PM2/13/17
to Ansible Project
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: admini...@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?

Takeshi Kuramochi

unread,
Feb 13, 2017, 7:02:01 PM2/13/17
to ansible...@googlegroups.com
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
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/49f566c5-4dea-4e33-b186-7b2e6bf68aba%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Ricardo Esteves

unread,
Feb 14, 2017, 2:39:56 AM2/14/17
to Ansible Project
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.
Reply all
Reply to author
Forward
0 new messages