# vmware\_guest building template - dont deploy to a resource pool

**URL:** <https://forum.ansible.com/t/vmware-guest-building-template-dont-deploy-to-a-resource-pool/26406>\
**Category:** Ansible Project\
**Created:** [January 3, 2018, 9:59am UTC](https://forum.ansible.com/t/vmware-guest-building-template-dont-deploy-to-a-resource-pool/26406 "2018-01-03T09:59:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkempster22uu](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@mkempster22uu](https://forum.ansible.com/u/mkempster22uu)\
**Post date:** [January 3, 2018, 9:59am UTC](https://forum.ansible.com/t/vmware-guest-building-template-dont-deploy-to-a-resource-pool/26406/1 "2018-01-03T09:59:51Z")

</div>

Is there a way to get the vmware\_guest module to not deploy a build from template into a resource pool? Our vcenter has a cluster with 4 esx hosts in, there is one resource pool that is setup for SRM, theres nothing in it and i’m not entirely sure why its there. All our VMs get put straight into the cluster not assigned to any resource pools but when I build with ansible from a template it will always place the new vm in that resource pool

I’ve tried a few different ways to set the ‘resource\_pool:’ option to fix this but haven’t found anything that works yet

Thanks

---

<div class="post-metadata">

**Author:** ![Sebastien\_Desbois](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@Sebastien\_Desbois](https://forum.ansible.com/u/Sebastien_Desbois)\
**Post date:** [January 4, 2018, 11:18am UTC](https://forum.ansible.com/t/vmware-guest-building-template-dont-deploy-to-a-resource-pool/26406/2 "2018-01-04T11:18:00Z")

</div>

Hello,

What is your version of Ansible ?  
Starting version 2.4, vmware\_guest is totally broken on the resource\_pool parameter.

For previous versions, the default resource pool ithat could be indicated was /Resources and it was working.  
(It has been introduced in 2.3)

To be honest, for the moment, you should use vsphere\_guest.  
Even if it old and “soon” to be depreciated (aka when vmware\_guest will be working properly), it’s much more stable for the moment than vmware\_guest and still have more functions.

---

<div class="post-metadata">

**Author:** ![mkempster22uu](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@mkempster22uu](https://forum.ansible.com/u/mkempster22uu)\
**Post date:** [January 4, 2018, 11:23am UTC](https://forum.ansible.com/t/vmware-guest-building-template-dont-deploy-to-a-resource-pool/26406/3 "2018-01-04T11:23:54Z")

</div>

Hello,

I’m currently using 2.4.2 (inside Ansible AWX).  
I’ve tried both using vSphere and VMware modules. But you mentioned VMware is screwed with resource\_pool so I will make sure to switch that back. with these modules there are a lot of threads showing how to chose a specific resource pool but no way of telling it to not put it in a resource pool

---

<div class="post-metadata">

**Author:** ![mkempster22uu](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@mkempster22uu](https://forum.ansible.com/u/mkempster22uu)\
**Post date:** [January 10, 2018, 11:24am UTC](https://forum.ansible.com/t/vmware-guest-building-template-dont-deploy-to-a-resource-pool/26406/4 "2018-01-10T11:24:21Z")

</div>

For future reference:

Found someone else had the exact same issue of sometimes having one pool present that he didn’t want the new vm to be placed into:  
[https://github.com/ansible/ansible/issues/28394](https://github.com/ansible/ansible/issues/28394)

Was fixed with the option to have  
resource\_pool\_cluster\_root: True

This is only in the newer more functional vmware\_guest module. and Ansible 2.5.0+ for it to be available
