Bionic uses Python2 for Ansible, while Buster and Focal use Python3. Try to pull in the right requests package by always pulling in the Python3 version, and the Python2 vesion only for systems with base files prior to 10.3 which is what Buster has (Focal has 11).
Install the right python requests for each distro
Bionic uses Python2 for Ansible, while Buster and Focal use Python3.
Try to pull in the right requests package by always pulling in the
Python3 version, and the Python2 vesion only for systems with base files
prior to 10.3 which is what Buster has (Focal has 11).