Changing directory for installed collection

Is it possible to change directory where installed default collection?

According to the documentation, it is located in
/var/lib/awx/projects/.__awx_cache/
https://github.com/ansible/awx/blob/devel/docs/collections.md

It is important that the collection is installed in the project directory which is downloaded from git.

Hi!

At runtime, we build out a temporary directory, and the project is copied to that temporary directory alongside the necessary collection files. So in the end, when the job is about to run, this temporary folder has the project + collection files in one place. So you shouldn’t need to modify the location of this cache.

Were you running into any sort of particular problem involving collections?

AWX Team

Hi,

The problem is that I would like to use a playbook from the collection. As it stands, the collection is on a different path than the example project:
The collection is installed here:
/var/lib/awx/projects/.__awx_cache/_42__project_name/stage

And the project is:
/ var / lib / awx / projects / _42__project_name /
What makes it impossible to create a job template because I can choose from playbooks from the path
/ var / lib / awx / projects / _42__project_name /
not /var/lib/awx/projects/.__awx_cache/_42__project_name/

Thank for for that clarification on the issue you are having. You are correct that right now, the code which scans the project for valid playbooks does not look at the cache where we have installed the included collections. We think this merits an issue on our Github, https://github.com/ansible/awx/issues. If you could open an issue up on Github it will get tagged and integrated into our planning and workflow. All future work will be tracked there. Issues should include as much information as possible, including screenshots, log outputs, or any reproducers.

In the mean time, you can create a play in your project to call the playbook from the role like:

Thanks for help I create issue #12477