Collection versioning vs ansible

Hello,

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

I need to use this collection : community.general.scaleway inventory – Scaleway inventory source — Ansible Community Documentation

But is is shipped with general collection 10.7.1

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

Thank you for your help

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 find that in the ansible-build-data repository: GitHub - ansible-community/ansible-build-data: Holds generated but persistent results from building the ansible community package
For example, 10/ansible-10.7.0.deps contains the versions of all collections contained in Ansible 10.7.0 (which you have installed).

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).

thank you for clarifying !