How to use cached facts inside ansible module and caching custom facts

26 views
Skip to first unread message

Yasir Saleem

unread,
Jul 7, 2015, 7:30:18 PM7/7/15
to ansible...@googlegroups.com
Hi,
   I am writing module that validates host facts(large number of them) with inventory database for audit and monitoring purposes. I have couple of questions in this regard:

1. Is there a way to cache custom facts? 
2. Is there an API to use cached or ansible gathered facts inside module? 


Thanks,
Yasir.

Brian Coca

unread,
Jul 7, 2015, 7:40:08 PM7/7/15
to ansible...@googlegroups.com
1. they are cached with rest of facts
2. no
> --
> 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 post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/936e9add-caa3-449c-8719-159fd1c01774%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Brian Coca
Reply all
Reply to author
Forward
0 new messages