VMware and Ansible - Resource pools?
<p>I'm currently attempting to write a playbook to deploy virtual machines in our VMware cluster, and I'm currently at a loss. No matter what is being input into the playbook, it will not recognize the resource pool.</p>

<pre><code>---
- hosts: all
  gather_facts: false
  connection: local
  user: remote
  sudo: false

  vars_prompt
    - name: "resource_pool"
      prompt: "Enter resource pool"
      private: no

  vars:
    notes: 'Created by Ansible'
    vcenter_hostname: 'esxhost.local'
    vcenter_username: 'om'
    vcenter_password: '*********'

  tasks:
    - vsphere_guest:
        vcenter_hostname: "{{ vcenter_hostname }}"
        username: "{{ vcenter_username }}"
        password: "{{ vcenter_password }}"
        guest: "{{ vm_name }}"
        cluster: DummyCluster
        resource_pool: "{{ resource_pool }}"
        from_template: no
        template_src: testvm001
        vm_extra_config:
          notes: "{{ notes }}"
        vm_disk:
          disk1:
            size_gb: 10
            type: thin
            datastore: dummystore01
        vm_nic:
          nic1:
            type: vmxnet3
            network: vlan48-internal
            network_type: standard
        vm_hardware:
          memory_mb: 512
          num_cpus: 1
          osid: ubuntu64Guest
          scsi: paravirtual
        esxi:
          datacenter: DUMMY-DC
          hostname: esxdummy01.local
</code></pre>

<p>No matter how I define the resource pool, it always returns an error. In the official documentation, resource pools are shown off as being defined:</p>

<pre><code>resource_pool: "/Resources"
</code></pre>

<p>Where <code>"/Resources"</code>, I assume is the resource pool, though this, with or without front slash, will not work.</p>