# Use of fact\_path : in inventory (on group vars, on host vars) ? in configuration file (ansible.cfg)? in variable files ?

**URL:** <https://forum.ansible.com/t/use-of-fact-path-in-inventory-on-group-vars-on-host-vars-in-configuration-file-ansible-cfg-in-variable-files/20091>\
**Category:** Ansible Project\
**Created:** [December 29, 2015, 1:11pm UTC](https://forum.ansible.com/t/use-of-fact-path-in-inventory-on-group-vars-on-host-vars-in-configuration-file-ansible-cfg-in-variable-files/20091 "2015-12-29T13:11:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![J\_Blomart](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@J\_Blomart](https://forum.ansible.com/u/J_Blomart)\
**Post date:** [December 29, 2015, 1:11pm UTC](https://forum.ansible.com/t/use-of-fact-path-in-inventory-on-group-vars-on-host-vars-in-configuration-file-ansible-cfg-in-variable-files/20091/1 "2015-12-29T13:11:18Z")

</div>

Dears,

I have just started checking out Ansible to handle automation on a set of dedicated servers.  
I have built a fact file to collect information about the application that we want to handle.

For segregation purposes, i should move the fact files to a new location on the servers.  
I did move the fact files to /opt/[company]/scripts/ansible/facts.d.

Then I updated ansible.cfg and added “fact\_path=/opt/[company]/scripts/ansible/facts.d”  
 → this did not work

I then updated inventory file and added group var “fact\_path” for each group i use  
 → this did not work

I finally added “fact\_path” for each host entry in inventory …  
 → this did not work

Where should i define fact\_path ? ( preferably in a central location … not to update all playbooks used )

Thanks.  
J

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [December 29, 2015, 10:57pm UTC](https://forum.ansible.com/t/use-of-fact-path-in-inventory-on-group-vars-on-host-vars-in-configuration-file-ansible-cfg-in-variable-files/20091/2 "2015-12-29T22:57:26Z")

</div>

currently the only place to set it is in a task:

- setup: fact\_path=/path
