Error saying CustomHTTPSConnection object has no attribute cert_file

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
1 Like

Hi,

Facing the same issue here, I haven’t found a solution yet !

ansible-core 2.12 is EOL, and does not support Python 3.12. See Releases and maintenance — Ansible Community Documentation

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.