Collection path

Hi,

I am trying to use collections.
i have tree:

ansible/
./ansible.cfg
./roles
./group_vars
./requirements
...

i tried to give a path:

[defaults]
collections_paths = /home/bob/.ansible/collections:/usr/share/ansible/collections:/usr/lib/python3.13/site-packages/ansible_collections

But when running:
ansible --version

It does not apply.
it shows only:

ansible collection location = .ansible/collections:/usr/share/ansible/collections

I have tried also : ‘collections_path’

The right path is : /usr/lib/python3.13/site-packages/ansible_collections

Any help would be appreciated.

I’m having difficulty locating community.general.ip_route. I don’t see it in the community.general collection. How did you install community.general.ip_route and where did you install it to?

Here’s the community.general collection, and there’s ip_route as part of that:

community.general.ip_route sounds like a hallucinating AI to me. That module doesn’t exist and never existed.

3 Likes

Yes, my mistake.

Beyond, this error, what is wrong with my ansible.cfg, because i did not succeed to define a new collection path.