Custom facts written using resource module builder

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

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

Regards,

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

  2. https://github.com/ansible-collections/cisco.ios/pull/414

Thanks!