# deploy VM undera  DRS cluster

**URL:** <https://forum.ansible.com/t/deploy-vm-undera-drs-cluster/21867>\
**Category:** Ansible Project\
**Created:** [June 27, 2016, 3:11pm UTC](https://forum.ansible.com/t/deploy-vm-undera-drs-cluster/21867 "2016-06-27T15:11:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayan\_Dasgupta](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@Ayan\_Dasgupta](https://forum.ansible.com/u/Ayan_Dasgupta)\
**Post date:** [June 27, 2016, 3:11pm UTC](https://forum.ansible.com/t/deploy-vm-undera-drs-cluster/21867/1 "2016-06-27T15:11:18Z")

</div>

Hi,

Can we deploy a VM under a specific DRS cluster instead of providing datastore name.

Any help would be greatly appreciated.

Warm regards,

Ayan

---

<div class="post-metadata">

**Author:** ![Dann\_Bohn](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@Dann\_Bohn](https://forum.ansible.com/u/Dann_Bohn)\
**Post date:** [June 27, 2016, 11:20pm UTC](https://forum.ansible.com/t/deploy-vm-undera-drs-cluster/21867/2 "2016-06-27T23:20:05Z")

</div>

Presently this is not possible. You could do something like provide the module a list of datastores and use jinja random to pick one

datastore: {{datastores|random}}

It's not perfect, but you can do this out of the box

Dann

---

<div class="post-metadata">

**Author:** ![Ayan\_Dasgupta](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@Ayan\_Dasgupta](https://forum.ansible.com/u/Ayan_Dasgupta)\
**Post date:** [June 30, 2016, 7:30am UTC](https://forum.ansible.com/t/deploy-vm-undera-drs-cluster/21867/3 "2016-06-30T07:30:38Z")

</div>

Thanks Dann.

Let me try this.
