# Changing directory for installed collection

**URL:** <https://forum.ansible.com/t/changing-directory-for-installed-collection/36811>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [July 6, 2022, 2:04pm UTC](https://forum.ansible.com/t/changing-directory-for-installed-collection/36811 "2022-07-06T14:04:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastian1](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@Sebastian1](https://forum.ansible.com/u/Sebastian1)\
**Post date:** [July 6, 2022, 2:04pm UTC](https://forum.ansible.com/t/changing-directory-for-installed-collection/36811/1 "2022-07-06T14:04:05Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [July 6, 2022, 7:28pm UTC](https://forum.ansible.com/t/changing-directory-for-installed-collection/36811/2 "2022-07-06T19:28:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Sebastian1](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@Sebastian1](https://forum.ansible.com/u/Sebastian1)\
**Post date:** [July 7, 2022, 7:03am UTC](https://forum.ansible.com/t/changing-directory-for-installed-collection/36811/3 "2022-07-07T07:03:13Z")

</div>

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/

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [July 7, 2022, 11:24am UTC](https://forum.ansible.com/t/changing-directory-for-installed-collection/36811/4 "2022-07-07T11:24:13Z")

</div>

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](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:

---

<div class="post-metadata">

**Author:** ![Sebastian1](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@Sebastian1](https://forum.ansible.com/u/Sebastian1)\
**Post date:** [July 7, 2022, 12:55pm UTC](https://forum.ansible.com/t/changing-directory-for-installed-collection/36811/5 "2022-07-07T12:55:18Z")

</div>

Thanks for help I create issue #12477
