Ansible’s dependency is only Python. You need to make sure that Python is present, along side with pip, any you’re good to go.
Typically on a debian environment, the following command should be enough to get you going to install ansible :
apt install python-dev python-pip