# Change IP of VM after deploying it from template it in vSphere

**URL:** <https://forum.ansible.com/t/change-ip-of-vm-after-deploying-it-from-template-it-in-vsphere/23092>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [November 24, 2016, 10:59am UTC](https://forum.ansible.com/t/change-ip-of-vm-after-deploying-it-from-template-it-in-vsphere/23092 "2016-11-24T10:59:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim3](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@Tim3](https://forum.ansible.com/u/Tim3)\
**Post date:** [November 24, 2016, 10:59am UTC](https://forum.ansible.com/t/change-ip-of-vm-after-deploying-it-from-template-it-in-vsphere/23092/1 "2016-11-24T10:59:53Z")

</div>

Hi everyone,

I recently made a playbook which deploys a VM (Windows 2012 R2) from a template in my vCenter, which runs without problems. I wanted to set the IP (and maybe join the windows domain, if possible) of this newly set up VM, but didn’t find a parameter in the vsphere\_guest module, which fits my needs.  
Is there a way to change an IP of a Windows VM in vSphere using Ansible?

Thanks,  
Tim
