Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
Issue is to do with having ansible installed by apt. Apologies, I did not understand the root cause but to resolve the issue remove ansible from system and install it in venv ONLY e.g. sudo apt remove -y ansible