Installation of ansible in WSL2 fails

I solved it with a direct download of ansible from pypi , the parameter --retries 50and several tries.

That seems to have been a problem with the network.