The ansible collection loader requires collection name space dirs are
below a 'ansible_collections' directory. 'ansible_collections' ends up
being the root of a python namespace package where all of the python
code can be referenced (including non python code which can be loaded
via pkgutils.get_data()).
So the default install locations (aka, content roots) need to
have the 'ansible_collections' subdir added to their path.
This updates all of the config defaults, documentation, and
the paths used in tests to include 'ansible_collections'
Note: If you have existing collection namespaces in a dir like
~/.ansible/content/, they will need to be manually moved to
~/.ansible/content/ansible_collections/
SUMMARY
Add ansible_collections to default content_roots
The ansible collection loader requires collection name space dirs are below a 'ansible_collections' directory. 'ansible_collections' ends up being the root of a python namespace package where all of the python code can be referenced (including non python code which can be loaded via pkgutils.get_data()).
So the default install locations (aka, content roots) need to have the 'ansible_collections' subdir added to their path.
This updates all of the config defaults, documentation, and the paths used in tests to include 'ansible_collections'
Note: If you have existing collection namespaces in a dir like ~/.ansible/content/, they will need to be manually moved to ~/.ansible/content/ansible_collections/
See https://github.com/ansible/ansible/pull/52194 for the ansible changes.
ISSUE TYPE
MAZER VERSION