On Ubuntu 24 hosts, I have been getting this error whenever a file needs to be downloaded over HTTPS.
An unknown error occurred: 'CustomHTTPSConnection' object has no attribute 'cert_file'
The playbook works fine on Ubuntu 22 though.
This is the ansible version details that I use.
# ansible --version
ansible [core 2.12.10]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.8.10 (default, Mar 25 2024, 10:42:49) [GCC 9.4.0]
jinja version = 2.10.1
libyaml = True