Hello All, I have an Ansible server with collections that are stored under a user context in "/home/user/.ansible/ansible_collections/" in addition to the collections for all users that are stored in "/usr/lib/python3/dist-packages/ansible_collections/". I found that there are some duplicates of collections, such as "ansible.windows" that are different versions. In order to mitigate the risk of running playbooks using the wrong version of a collection, I want to remove the collections that are installed under a user context.
Unfortunately, I found that there isn't a remove argument for "ansible-galaxy collection". And I didn't find anything in the Ansible documentation or anything definitive in this Google group, nor doing Google searches or ChatGPT. It is possible that deleting the specific folders under /home/user/.ansible/ansible_collections/ would work. But I don't know if that could have unintended consequences. So, I would like to get some confirmation from anyone who has experience with this or knows where it is documented. Does anyone know what the best practice is for removing installed collections? Also, I have submitted an issue for the correct method to be documented at: https://docs.ansible.com/ansible/latest/collections_guide/index.html#using-ansible-collections. It will probably take a while for that issue to be taken on and resolved though. Best regards, Eric -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/490f79e1-c2c2-48bf-99e4-fddea5bebe2an%40googlegroups.com.