# Custom facts written using resource module builder

**URL:** <https://forum.ansible.com/t/custom-facts-written-using-resource-module-builder/35709>\
**Category:** Ansible Project\
**Created:** [September 5, 2021, 9:15am UTC](https://forum.ansible.com/t/custom-facts-written-using-resource-module-builder/35709 "2021-09-05T09:15:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitesh\_shet](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Post date:** [September 5, 2021, 9:15am UTC](https://forum.ansible.com/t/custom-facts-written-using-resource-module-builder/35709/1 "2021-09-05T09:15:47Z")

</div>

Hi,

I had written a custom facts for NTP server but it is acting weirdly everytime i run the facts module using playbook , sometimes values will come and sometimes not.  
Can you please help me with this, is this the problem with builders or do i need to add a seperate class for connection?

Thanks,  
Nitesh

---

<div class="post-metadata">

**Author:** ![jean-yves](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jean-yves](https://forum.ansible.com/u/jean-yves)\
**Post date:** [September 5, 2021, 10:09am UTC](https://forum.ansible.com/t/custom-facts-written-using-resource-module-builder/35709/2 "2021-09-05T10:09:47Z")

</div>

Show us the code and different results when it works and when it don’t

Regards,

---

<div class="post-metadata">

**Author:** ![Nilashish\_Chakrabort](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@Nilashish\_Chakrabort](https://forum.ansible.com/u/Nilashish_Chakrabort)\
**Post date:** [September 13, 2021, 6:39am UTC](https://forum.ansible.com/t/custom-facts-written-using-resource-module-builder/35709/3 "2021-09-13T06:39:43Z")

</div>

Hey Nitesh,

I suspect it is because of some issue in how the parsers are written. The Ansible Network Team is already working on NTP resource modules, I’d recommend having a look at the following PRs to get some more ideas on this:

1. [https://github.com/ansible-collections/cisco.nxos/pull/351](https://github.com/ansible-collections/cisco.nxos/pull/351)

2. [https://github.com/ansible-collections/cisco.ios/pull/414](https://github.com/ansible-collections/cisco.ios/pull/414)

Thanks!
