# Ansible 1.3 - Read facts from files.

**URL:** <https://forum.ansible.com/t/ansible-1-3-read-facts-from-files/13727>\
**Category:** Ansible Project\
**Created:** [October 21, 2013, 10:19am UTC](https://forum.ansible.com/t/ansible-1-3-read-facts-from-files/13727 "2013-10-21T10:19:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcin\_Praczko](https://avatars.discourse-cdn.com/v4/letter/m/7ba0ec/32.png) [@Marcin\_Praczko](https://forum.ansible.com/u/Marcin_Praczko)\
**Post date:** [October 21, 2013, 10:19am UTC](https://forum.ansible.com/t/ansible-1-3-read-facts-from-files/13727/1 "2013-10-21T10:19:59Z")

</div>

Hi there,

On ansible webiste for modules there is information that ‘setup’ module can use fact\_path paramters which allow read facts from file.  
I searched ansible-examples and don’t see any example for this so far. So could you give me small example how this is working, please?

1. Whether this happening automatically during gathering facts - or what I need is just fact files in json or ini file located in path? If yes how pass path to ‘setup’ module?
2. Or I can setup task ‘setup’ and gather facts (again) and with fact\_path parameter?
3. Is there any example somewhere (webiste / git) where I can see how facts files should look like in json or ini format. Or use format from setup module and using my own varaibles?

I think this is really useful option - but so far I have no idea how to use it.

Hope that is somebody who already done this and will share a bit of light others ansible users 🙂

Best regards,  
Marcin Praczko

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [October 22, 2013, 1:18am UTC](https://forum.ansible.com/t/ansible-1-3-read-facts-from-files/13727/2 "2013-10-22T01:18:49Z")

</div>

This setting is for the “local facts” feature, as described here:

[http://ansibleworks.com/docs/playbooks\_variables.html#local-facts-facts-d](http://ansibleworks.com/docs/playbooks_variables.html#local-facts-facts-d)
