Maybe the clear_facts meta module and a new fact gathering may work in your
case?

https://docs.ansible.com/ansible/latest/modules/meta_module.html

On Thu, Sep 3, 2020 at 10:41 PM [email protected] <[email protected]>
wrote:

> Hi Team,
>
> I have a project which uses ansible to run traffic tools on a given set of
> hosts.
> I have fact_caching enabled.
>
> While configuring and starting the traffic there are at times where the
> facts in the system changes dynamically for which i need to freshly gather
> facts but due to fact_caching mechanism i get the cached output.
>
> Can we override fact_caching in the playbook dynamically based on
> requirements?
>
> Regards
> Sai
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/61e57227-1fd8-41ec-9fd1-cb1c33ee73b3n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/61e57227-1fd8-41ec-9fd1-cb1c33ee73b3n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEAA%3Dtv0BV0Qa%3D-ijWRMExjRGLq1atjFHd%2Bk1u5zCopQssajaA%40mail.gmail.com.

Reply via email to