Self-containing collection install
Version requirement: ansible-core >= 2.13.9
Take ansible.posix
as an example:
cat >ansible.cfg <<EOF
[defaults]
collections_paths = ./collections
callbacks_enabled = ansible.posix.profile_tasks
EOF
ansible-galaxy collection install ansible.posix -p ./collections