In short the problem is that vertualenv
that ansible script uses for setting up the python environment tries to install the latest package for setuptools
.
The latest version is 45.0
and it is marked that works only with Python 3, however some package repository mirrors can not recognize this mark and return version 45.0
as Python 2 compatible which ends up to cause the errors you see.
For more details you can check the links I’ve posted on the issue that @jebba opened.