Can't do that sadly as the custom module needs to run regardless; it's just 
a small part of a function that I need to reference the fact cache before 
that particular fact gets set.

On Thursday, October 15, 2020 at 8:52:59 AM UTC+1 rodo...@gmail.com wrote:

> You can do this by conditionally executing your custom module on whether 
> the custom variable (fact) that comes from your module is defined.
>
> On Thu, 15 Oct 2020 at 09:17, Zeek3000 <rjs...@gmail.com> wrote:
>
>> Hello,
>>
>> I'm trying to access facts that are cached in AWX from within my custom 
>> network module, preferably without having to make an API call. I need to 
>> check if an element already exists in the fact cache so that it doesn't get 
>> overwritten by running the module
>>
>> Is it possible to access these cached facts by using ansible_facts, and 
>> how can I make that available to my custom module? 
>>
>> Thanks!
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Ansible Development" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to ansible-deve...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-devel/36db0527-0eb6-40de-a76b-4a1ef2f74c35n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-devel/36db0527-0eb6-40de-a76b-4a1ef2f74c35n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/db22f5c2-0daf-4c5d-91a3-630921fa6f72n%40googlegroups.com.

Reply via email to