Changing the network and ip of th virtual machine after creation using vmware_guest module

9 views
Skip to first unread message

Sahar

unread,
Mar 25, 2019, 3:20:23 PM3/25/19
to Ansible Project
Hi,

I'm trying to change the network and ip/netmask of a vm after creation in vmware using the below playbook:



  - vmware_guest:
      hostname: '{{ }}'
      username: '{{ }}'
      password:  '{{ }}'
      validate_certs: no
      datacenter:  '{{ }}'
      name: FW_Test2
      template: FW_Test2
      networks:
        - name: 'dvPG-MGMT'
          ip: 0.0.0.0
          netmask: 0.0.0.0
      customization:
        ip: '172.17.42.9'
        netmask: 255.255.254.0
        gateway: '172.17.42.1'
    delegate_to: localhost


and getting the below error:

fatal: [localhost -> localhost]: FAILED! => {"changed": true, "msg": "The operation is not supported on the object."}



Anyidea what this error means or why I get it?
Reply all
Reply to author
Forward
0 new messages