I am a bit lost to understand ansible versioning especially with regards to collection version number.
I am currently using ansible on debian 12 :
root@server :~# dpkg --list | grep ansible
ii ansible 10.7.0-1ppa~jammy all Ansible collections for ansible-core
ii ansible-core 2.17.10-1ppa~jammy all Ansible IT Automation
This version get build with general collection 9.5.2 :
root@server:~# ansible-galaxy collection list | grep general
community.general 9.5.2
So where I can find the mapping with ansible version & community.general collection ?
Is the proper way to execute : ansible-galaxy collection install community.general:10.7.1
Why do you need community.general 10.7.1? The plugin is part of all community.general releases, it’s just that the documentation you’re looking at is for the plugin as included in community.general 10.7.1. If the plugin wouldn’t have been in all versions of community.general, it would say something like “New in community.general x.y.z” like for community.general.opennebula inventory – OpenNebula inventory source — Ansible Community Documentation.
So where I can find the mapping with ansible version & community.general collection ?
You can of course explicitly install another version of community.general with ansible-galaxy collection install, but then you also have to take care of updating it once a new version gets released. If you’re using the ansible package, it’s usually best to stick to the collection versions included in it (if you don’t explicitly need a newer version of something).