# Duplicate collection debian 12

**URL:** <https://forum.ansible.com/t/duplicate-collection-debian-12/10425>\
**Category:** Get Help\
**Tags:** vmware, collections, galaxy-ng\
**Created:** [October 21, 2024, 10:09am UTC](https://forum.ansible.com/t/duplicate-collection-debian-12/10425 "2024-10-21T10:09:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![romgo](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/romgo/32/5202_2.png) [@romgo](https://forum.ansible.com/u/romgo)\
**Post date:** [October 21, 2024, 10:09am UTC](https://forum.ansible.com/t/duplicate-collection-debian-12/10425/1 "2024-10-21T10:09:08Z")

</div>

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 :

```auto
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 :

```auto
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

---

<div class="post-metadata">

**Author:** ![bcoca](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bcoca/32/9269_2.png) [@bcoca](https://forum.ansible.com/u/bcoca)\
**Post date:** [October 21, 2024, 2:32pm UTC](https://forum.ansible.com/t/duplicate-collection-debian-12/10425/2 "2024-10-21T14:32:32Z")

</div>

The first one found is the one used, be aware that playbooks can have an ‘adjacent’ collection directory that has higher precedence. Newer versions of Ansible (2.14 is pretty old, 2.18 is about to be released) will do a better job of displaying locations. In any case, adding `-vvv` will show the location at which each collection is found.

---

<div class="post-metadata">

**Author:** ![mariolenz](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mariolenz/32/108_2.png) [@mariolenz](https://forum.ansible.com/u/mariolenz)\
**Post date:** [October 21, 2024, 3:07pm UTC](https://forum.ansible.com/t/duplicate-collection-debian-12/10425/3 "2024-10-21T15:07:28Z")

</div>

> [@romgo](#):
>
> Currently my OS is debian 12, I installed ansible from ansible repositories, so I have full up-to-date version

What do you mean by “installed from ansible repositories”? It looks more like you installed [ansible](https://packages.debian.org/de/bookworm/ansible) from the normal Debian repo.

As @bcoca mentioned, 2.14 is pretty old and _not_ up-to-date. Debian is known to often ship pretty old versions. This is by design, though, because they don’t want to introduce new versions with (potentially) new bugs and problems.

> [@romgo](#):
>
> 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.

[ansible-core shouldn’t include this collection, but ansible should](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#selecting-an-ansible-package-and-version-to-install).

BTW `community.vmware` doesn’t support ansible-core 2.14 since 4.0.0 (that is, the collection release).
