There may be a way to send the logs to a file with pythons logging functions but it’s not turned on by default.
Typically we see people use the external logging feature to send the Activity Steam (and other logs) to a system like ELK or Splunk.
We achieved this by redirecting the ANSIBLE LOG PATH logs to a persistent file storage. You can set the ANSIBLE_LOG_PATH in the instance group pod specification;