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