With this, the final module we are going to look at, you can create a resource pool. An example of how to do this follows:
- name: Add resource pool vmware_resource_pool: hostname: "{{ vsphere_host }}" username: "{{ vsphere_username }}" password: "{{ vsphere_password }}" validate_certs: "no" datacenter: "my_datacenter" cluster: "my_new_cluster" resource_pool: "my_resource_pool" mem_shares: "normal" mem_limit: "-1" mem_reservation: "0" mem_expandable_reservations: "True" cpu_shares: "normal" cpu_limit: "-1" cpu_reservation: "0" cpu_expandable_reservations: "True" state: present delegate_to: "localhost"