title: pyvmomi: can't set IP address in VmWare vSphere
body: <p>I use this playbook, it create a new VM from a template, but I can't figure out the way to use the IP and DNS configuration. Is there something I miss ?</p>
  
  <pre><code># Deploy a guest from a template*
  - hosts: 127.0.0.1
    tasks:
    - name: Create a virtual machine
      vmware_guest:
        datacenter: xxx
        hostname: vcenter1.foobar.tld
        username: xxxx
        password: xxxx
        validate_certs: False
        folder: xxx/yyy/zzz
        name: TEST-01
        template: TEMPLATE-DEBIAN9
        cluster: cluster1
        state: poweredon
        hardware:
          memory_mb: 1024
          num_cpus: 1
        networks:
        - name: LAN_394_FOOBAR
          nic1:
            type: vmxnet3
            network_type: standard
        - name: WAN_432_FOOBAR
          nic2:
            type: vmxnet3
            network_type: standard
            ip: x.x.x.x
            netmask: 255.255.255.0
            gateway: x.x.x.x
            domain: foobar.tld
            dns_servers:
            - x.x.x.x
            - x.x.x.y
  </code></pre>