I am confused by both of them. I have been installing both as I am not sure if they are the same thing or different. I assume different now because ansible.windows is version 2.2.0 and community.windows is 2.1.0. I installed both of them using ansible.galaxy but recently tried to remove community.windows because it was older but even after rm -rf ~/.ansible/collections/ansible_collections/community , I still see it with ansible-galaxy collection list.
So which should we be using and how do you remove a collection properly? Or are both ansible.windows and collection.windows somehow tied together?
This is on Rocky Linux 9.3 fully updated.
ansible-galaxy collection list
ansible.posix 1.5.4
ansible.windows 2.2.0
community.general 7.2.1
community.windows 2.1.0
[ansible@ode-ansible02 ]$ ansible --version
ansible [core 2.14.9]
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.9/site-packages/ansible
ansible collection location = /home/ansible/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/usr/bin/python3)
jinja version = 3.1.2
libyaml = True
I only have ansible-core installed from the OS/Stream packages.
[ansible@ode-ansible02 ]$ rpm -qa|grep ansible
ansible-core-2.14.9-1.el9.x86_64
I also used pip to install pywinrm