# Changing the network and ip of th virtual machine after creation using vmware\_guest module

**URL:** <https://forum.ansible.com/t/changing-the-network-and-ip-of-th-virtual-machine-after-creation-using-vmware-guest-module/29982>\
**Category:** Ansible Project\
**Tags:** vmware\
**Created:** [March 25, 2019, 7:20pm UTC](https://forum.ansible.com/t/changing-the-network-and-ip-of-th-virtual-machine-after-creation-using-vmware-guest-module/29982 "2019-03-25T19:20:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sahar](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@Sahar](https://forum.ansible.com/u/Sahar)\
**Post date:** [March 25, 2019, 7:20pm UTC](https://forum.ansible.com/t/changing-the-network-and-ip-of-th-virtual-machine-after-creation-using-vmware-guest-module/29982/1 "2019-03-25T19:20:23Z")

</div>

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?
