This is because of it trying to auto discover the python interpreter. If you want Ansible to continue using /usr/bin/python and not show the warning, you can set ansible_python_interpreter to auto_legacy_silent to silence the warning. Otherwise, you can set it to auto which will have it use /usr/libexec/platform-python in this case.
^^^ That's a specific fix for that issue.
If you want to do it more generally:
https://docs.ansible.com/ansible/latest/reference_appendices/config.html#deprecation-warnings