Ansible provides very clear requirements on its github where it say Ansible 2.12.X needs resolvelib >= 0.5.3, < 0.6.0 but you are forcing resolvelib to be 0.8.1 when installing ansible with apt.
https://github.com/ansible/ansible/blob/stable-2.12/requirements.txt
So either fix the resolvelib version and publish the old resolvelib or update to Ansible 2.13 where resolvelib can be resolvelib >= 0.5.3, < 0.9.0
I managed to fix this by installing first ansible-core with apt and afterwards, installing with pip the resolvelib 0.5.4
Ansible provides very clear requirements on its github where it say Ansible 2.12.X needs resolvelib >= 0.5.3, < 0.6.0 but you are forcing resolvelib to be 0.8.1 when installing ansible with apt.
https:/ /github. com/ansible/ ansible/ blob/stable- 2.12/requiremen ts.txt
So either fix the resolvelib version and publish the old resolvelib or update to Ansible 2.13 where resolvelib can be resolvelib >= 0.5.3, < 0.9.0
I managed to fix this by installing first ansible-core with apt and afterwards, installing with pip the resolvelib 0.5.4