<p dir="auto">I am not able to use resource pool name in my playbook other than: resource_pool: "/Resources"<br>
Though resource_pool exists and can be discovered using pysphere.</p>
<blockquote>
<blockquote>
<blockquote>
<p dir="auto">from pysphere import VIServer<br>
s = VIServer()<br>
s.connect("host", 'user', 'password')<br>
vm = s.get_vm_by_name('&lt;vm_name&gt;')<br>
vm.get_resource_pool_name()<br>
'&lt;resource_name&gt;'</p>
</blockquote>
</blockquote>
</blockquote>
<h1 dir="auto"></h1>
<p dir="auto">TASK: [vsphere_guest ] ********************************************************<br>
failed: [localhost] =&gt; {"failed": true}<br>
msg: Cannot find Resource Pool named: databases_pool</p>
<h1 dir="auto">Ansible Version:</h1>
<p dir="auto">ansible 1.9.2, module: vsphere_guest</p>
<h1 dir="auto">Ansible Configuration:</h1>
<p dir="auto">Default configuration.</p>
<h1 dir="auto">Environment:</h1>
<p dir="auto">Ubuntu 14.04.2 LTS (GNU/Linux 3.13.0-57-generic i686)</p>
<h1 dir="auto">Summary:</h1>
<p dir="auto">I am not able to use resource pool name in my playbook other than: resource_pool: "/Resources"<br>
Though resource_pool exists and can be discovered using pysphere.</p>
<h1 dir="auto">Steps To Reproduce:</h1>
<p dir="auto">In Ansible playbook provide 'resource_pool' with resource pool created/present on VCenter.</p>
<h1 dir="auto">Result:</h1>
<p dir="auto">TASK: [vsphere_guest ] ********************************************************<br>
failed: [localhost] =&gt; {"failed": true}<br>
msg: Cannot find Resource Pool named: databases_pool</p>
<p dir="auto">But resource pool is present on VCenter and using pysphere resource pool can be discovered.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from pysphere import VIServer
s = VIServer()
s.connect(&quot;my_host&quot;, 'user', 'password')
vm = s.get_vm_by_name('')
vm.get_resource_pool_name()
'databases_pool'"><pre class="notranslate"><code class="notranslate">from pysphere import VIServer
s = VIServer()
s.connect("my_host", 'user', 'password')
vm = s.get_vm_by_name('')
vm.get_resource_pool_name()
'databases_pool'
</code></pre></div>
<h1 dir="auto">Expected:</h1>
<p dir="auto">vsphere_guest module should be able to create VM guest in resource pool.</p>
<h1 dir="auto">Actual Results:</h1>
<p dir="auto">vsphere_guest module only creates VM guest if 'resource_pool: /Resources'</p>