You can run this as a pre step to clear the cache:
rm ${fact_caching_connection}/*where fact_caching_connection can be configured in your ansible.cfg On Thursday, September 3, 2020 at 4:40:27 PM UTC-5 [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/edf3aede-7183-41ca-818a-0fbf2ce2a7d9n%40googlegroups.com.
