# help on windows gather facts

**URL:** <https://forum.ansible.com/t/help-on-windows-gather-facts/34188>\
**Category:** Ansible Project\
**Tags:** windows, ansible-project\
**Created:** [November 12, 2020, 3:18pm UTC](https://forum.ansible.com/t/help-on-windows-gather-facts/34188 "2020-11-12T15:18:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anitha\_sreejith](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@Anitha\_sreejith](https://forum.ansible.com/u/Anitha_sreejith)\
**Post date:** [November 12, 2020, 3:18pm UTC](https://forum.ansible.com/t/help-on-windows-gather-facts/34188/1 "2020-11-12T15:18:12Z")

</div>

Hi Anthony,

I am trying to create custom fact like below. But setup module during playbook execution gets hung.

What I am missing here. Please help.

I have attached Screenshort below.

The task “Gather custom facts” gets hunged and not moving forward.

Thanks,

> **(attachments)**
>
> ![20201112_204540.jpg](https://us1.discourse-cdn.com/ansible/original/2X/e/efca3355e04bb762c4d185c09182672eb6a3eaaf.jpeg)

---

<div class="post-metadata">

**Author:** ![Jerin\_J](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@Jerin\_J](https://forum.ansible.com/u/Jerin_J)\
**Post date:** [November 12, 2020, 3:21pm UTC](https://forum.ansible.com/t/help-on-windows-gather-facts/34188/2 "2020-11-12T15:21:07Z")

</div>

May be its looking for Ansible facts path … can you configure fact\_path = C:\temp in ansible.cfg ?

---

<div class="post-metadata">

**Author:** ![Anitha\_sreejith](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@Anitha\_sreejith](https://forum.ansible.com/u/Anitha_sreejith)\
**Post date:** [November 12, 2020, 3:44pm UTC](https://forum.ansible.com/t/help-on-windows-gather-facts/34188/3 "2020-11-12T15:44:00Z")

</div>

Hi Jerin,

I tried and when we do that change in /etc/ansible/ansible.cfg the first ever default gather facts gets affected and end up with error.

I have also tried with ad-hoc command

#ansible host group -m setup -a “fact\_path=c://Development” it gets hunged.

Any help would be appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![Jerin\_J](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@Jerin\_J](https://forum.ansible.com/u/Jerin_J)\
**Post date:** [November 12, 2020, 3:48pm UTC](https://forum.ansible.com/t/help-on-windows-gather-facts/34188/4 "2020-11-12T15:48:54Z")

</div>

Hi Anitha ,  
Its just a hung up or you getting any error ? If you getting error can you attach the same … remove facts path in your play and just add it in ansible.cfg

---

<div class="post-metadata">

**Author:** ![Anitha\_sreejith](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@Anitha\_sreejith](https://forum.ansible.com/u/Anitha_sreejith)\
**Post date:** [November 15, 2020, 6:19pm UTC](https://forum.ansible.com/t/help-on-windows-gather-facts/34188/5 "2020-11-15T18:19:44Z")

</div>

Hi,

Can anyone help with this? How to make setup gets run again in the middle after defining fact\_path.

My managed node is a windows server.

Regards,  
Anitha Sreejith
