# ansible fact list

**URL:** <https://forum.ansible.com/t/ansible-fact-list/32836>\
**Category:** Ansible Project\
**Created:** [May 3, 2020, 1:02am UTC](https://forum.ansible.com/t/ansible-fact-list/32836 "2020-05-03T01:02:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Orkhan\_Mammadov](https://avatars.discourse-cdn.com/v4/letter/o/eada6e/32.png) [@Orkhan\_Mammadov](https://forum.ansible.com/u/Orkhan_Mammadov)\
**Post date:** [May 3, 2020, 1:02am UTC](https://forum.ansible.com/t/ansible-fact-list/32836/1 "2020-05-03T01:02:48Z")

</div>

Hi guys,

I would like to check the facts list in ansible, it should be located in /etc/ansible/facts.d directory. But ansible directory under /etc is not exist. Is there different location that facts are located?

Thanks.

---

<div class="post-metadata">

**Author:** ![Neha\_Pithadiya](https://avatars.discourse-cdn.com/v4/letter/n/a3d4f5/32.png) [@Neha\_Pithadiya](https://forum.ansible.com/u/Neha_Pithadiya)\
**Post date:** [May 3, 2020, 4:48am UTC](https://forum.ansible.com/t/ansible-fact-list/32836/2 "2020-05-03T04:48:53Z")

</div>

Have you created this custom facts file ?

By default custom facts can be created and stored locally on each managed host. The /etc/ansible/facts.d directory does not exists by default. You will need to create this directory on each managed host , can use “file” module to do so. You can then copy the facts file into this directory for use by the playbook .

Thanks  
Neha Pithadiya.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [May 4, 2020, 1:48pm UTC](https://forum.ansible.com/t/ansible-fact-list/32836/3 "2020-05-04T13:48:30Z")

</div>

As @Neha points out /etc/ansible/facts.d is a way to generate facts,  
does not list them.

Here is a way to generate a copy of the facts for a server (on the  
machine that executes Ansible) :

`ansible -m gather_facts \<hostname\> --tree /var/tmp/ `

it will create a json file per host in '/var/tmp' with the output of  
the module executed, in this case 'fact gathering'.
