Custom facts written using resource module builder

25 views
Skip to first unread message

nitesh shet

unread,
Sep 5, 2021, 5:16:14 AM9/5/21
to ansible...@googlegroups.com
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

Jean-Yves LENHOF

unread,
Sep 5, 2021, 6:10:38 AM9/5/21
to ansible...@googlegroups.com

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

Regards,

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAPgfy9WpcjHFN-XfAgmPoR%3DZ0amF3ERX6-C-wENpdJV4C5Pg2Q%40mail.gmail.com.

Nilashish Chakraborty

unread,
Sep 13, 2021, 2:40:03 AM9/13/21
to ansible...@googlegroups.com
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!

--
Reply all
Reply to author
Forward
0 new messages