Facts cached and not update in play

Hi Ansible list. New guy to Ansible here.

I’m hitting an issue where facts are cached within a play despite calling an explicit task to -re-gather facts after a change. This appears to be contrary to the “getting started” documentation.

I’ve posted the question on stackoverflow with all the details and examples but wondering if this list is a more appropriate venue: https://stackoverflow.com/questions/71286183/prevent-re-use-of-cached-facts-in-ansible-play

Would anyone be able to advise if I’m doing something obviously wrong or if the linked documentation in the above question is incorrect?

Thank you!