# vmware vm migrate between datastores using ansible?

**URL:** <https://forum.ansible.com/t/vmware-vm-migrate-between-datastores-using-ansible/19743>\
**Category:** Ansible Project\
**Tags:** vmware\
**Created:** [November 12, 2015, 12:52pm UTC](https://forum.ansible.com/t/vmware-vm-migrate-between-datastores-using-ansible/19743 "2015-11-12T12:52:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnilD](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@AnilD](https://forum.ansible.com/u/AnilD)\
**Post date:** [November 12, 2015, 12:52pm UTC](https://forum.ansible.com/t/vmware-vm-migrate-between-datastores-using-ansible/19743/1 "2015-11-12T12:52:37Z")

</div>

Hi guys,

Looks like state=reconfigured in vsphere\_guest module cannot be used for datastore migration for a vm.  
Is there is away to migrate a virtual machine to a different datastore in the vcenter using ansible?
