# How do we set config file in another place?

**URL:** <https://forum.ansible.com/t/how-do-we-set-config-file-in-another-place/2530>\
**Category:** Get Help\
**Tags:** galaxy-ng\
**Created:** [November 23, 2023, 3:03am UTC](https://forum.ansible.com/t/how-do-we-set-config-file-in-another-place/2530 "2023-11-23T03:03:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ptn](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ptn/32/481_2.png) [@ptn](https://forum.ansible.com/u/ptn)\
**Post date:** [November 23, 2023, 12:33pm UTC](https://forum.ansible.com/t/how-do-we-set-config-file-in-another-place/2530/2 "2023-11-23T12:33:38Z")

</div>

Hey,

Have a look to the [related documentation page / section](https://docs.ansible.com/ansible/latest/reference_appendices/config.html#the-configuration-file).

I don’t know for AWX jobs, but assuming each of your project have its own ansible.cfg file in the directory you’re running your playbook, it should be used over the one you have in /etc/ansible/. You could also use the `ANSIBLE_CONFIG` envvar to tell Ansible which config file to use for your run.

Also ask yourself why you need to do that in the first place; if it’s because you want to define roles / collections paths for each job, for instance, then you could also [use envvars](https://docs.ansible.com/ansible/latest/reference_appendices/config.html#default-roles-path) as well.

Edit: Haven’t seen @utoddl [already answered your question](http://forum.ansible.com/t/how-to-arrange-structure-for-the-case-multiple-projects/2355/21), as you asked in another thread.

---

_[View the full topic](https://forum.ansible.com/t/how-do-we-set-config-file-in-another-place/2530)._
