# Couldn't resolve module/action 'community.vmware.vmware\_rest

**URL:** <https://forum.ansible.com/t/couldnt-resolve-module-action-community-vmware-vmware-rest/6352>\
**Category:** Get Help\
**Tags:** vmware, galaxy-ng\
**Created:** [June 13, 2024, 12:38pm UTC](https://forum.ansible.com/t/couldnt-resolve-module-action-community-vmware-vmware-rest/6352 "2024-06-13T12:38:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pgh2011](https://avatars.discourse-cdn.com/v4/letter/p/e56c9b/32.png) [@pgh2011](https://forum.ansible.com/u/pgh2011)\
**Post date:** [June 13, 2024, 12:38pm UTC](https://forum.ansible.com/t/couldnt-resolve-module-action-community-vmware-vmware-rest/6352/1 "2024-06-13T12:38:56Z")

</div>

Hi,

I have installed the vmware\_rest collection using:  
ansible-galaxy collection install vmware.vmware\_rest

It is visible with:  
ansible-galaxy collection list  
vmware.vmware\_rest 2.3.1

Is it located in:  
/home/ansible/.ansible/collections/ansible\_collections/vmware

But somehow I still get this error.

My config is:

ansible-playbook [core 2.16.5]  
config file = /etc/ansible/ansible.cfg  
configured module search path = [‘/home/ansible/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]  
ansible python module location = /usr/lib/python3/dist-packages/ansible  
ansible collection location = /home/ansible/.ansible/collections:/usr/share/ansible/collections  
executable location = /usr/bin/ansible-playbook  
python version = 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] (/usr/bin/python3)  
jinja version = 3.0.3  
libyaml = True

The dir /home/ansible/.ansible/plugins/modules is empty ☹  
Should this be filled?

The task i use:

tasks:  
- name: Connect to vCenter  
community.vmware.vmware\_rest:  
hostname: “vcenter1”  
username: “admin”  
password: “password”  
validate\_certs: no  
api\_retry\_timeout: 300  
timeout: 60  
delegate\_to: localhost  
register: vcenter\_connection

---

<div class="post-metadata">

**Author:** ![McGlovin](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mcglovin/32/3698_2.png) [@McGlovin](https://forum.ansible.com/u/McGlovin)\
**Post date:** [June 13, 2024, 4:00pm UTC](https://forum.ansible.com/t/couldnt-resolve-module-action-community-vmware-vmware-rest/6352/2 "2024-06-13T16:00:21Z")

</div>

Hi,

It looks like you have incorrectly referrenced the collection and module in your task.  
‘vmware’ is the namespace, ‘vmware\_rest’ is the collection name, and then you need to specify the module you wish to use that exists within the colllection, of which you can obtain the list from [vmware.vmware\_rest plugin list](https://docs.ansible.com/ansible/latest/collections/vmware/vmware_rest/index.html#plugins-in-vmware-vmware-rest).

There is also a ‘community.vmware’ collection, in which case you would need to install that collection and then reference the modules available from the list [community.vmware plugin list](https://docs.ansible.com/ansible/latest/collections/community/vmware/index.html#plugins-in-community-vmware)

For example:

```auto
- name: Get VM Info
  vmware.vmware_rest.vcenter_vm_info:
    vcenter_hostname: my-vcenterhost
    vcenter_password: password
    vcenter_username: username
    vm: my-vm

```

Hope that helps.
