Hello,
I am new to ansible, and I have a question with collection.
Currently my OS is debian 12, I installed ansible from ansible repositories, so I have full up-to-date version :
root@admin:/home/user# ansible --version
ansible [core 2.14.16]
config file = None
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.11.2 (main, Aug 26 2024, 07:20:54) [GCC 12.2.0] (/usr/bin/python3)
jinja version = 3.1.2
libyaml = True
I want to install the community.vmware collection following ansible documentation with the following command :
ansible-galaxy collection install community.vmware
This will deploy the collection into : /root/.ansible/collections/ansible_collections
But by running ansible-galaxy collection list
I can see that I have duplicate ansible collections :
root@admin:/home/user# ansible-galaxy collection list | grep vmware
community.vmware 5.0.1
vmware.vmware 1.5.0
community.vmware 4.7.1
vmware.vmware 1.5.0
vmware.vmware_rest 3.2.0
So I donât know which version will be used in my code. For information older version of vmware is installed into /usr/lib/python3/dist-packages/ansible_collections folder, I assume this is shipped with ansible-core.
What is th good solution here ? (delete old collections manually ? )
Thank you