Unable to use yum via Ansible on RHEL 8.6

Dupe of Unable to use yum on target RHEL 8.6 host that has python3.12