Discussion:
[ansible-project] How to use cached facts inside ansible module and caching custom facts
Yasir Saleem
2015-07-07 23:30:18 UTC
Permalink
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.
--
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-project+***@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
2015-07-07 23:39:58 UTC
Permalink
1. they are cached with rest of facts
2. no
Post by Yasir Saleem
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
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.
--
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
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
--
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-project+***@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/CAJ5XC8kJGAbXjjAYVN0xTD0Z-%3DEKgwxptA4cD%2BRXD8WENiA7mw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...