Unknown Error HTTPSConnection.__init__

Hi all… So posting here in a last resort because my google searches have turned up nothing, or solutions that did not work for me.

I have an ansible control-node that is running ubuntu 20.04. Everything has been working just fine… until yesterday… I have a new server in my environment, running ubuntu 24.04. When i was running my day0 playbook, it failed on a role that uses get_url to grab a file from github. I have tried using a non-https url, I have tried setting the certificate validation to false. Nothing I do seems to work, to get it working for that one host. The other hosts in my homelab, all run the role just fine.

So I was wondering if anyone has run into this where they got the error ( see below ) and how you got around it.

failed: [ubuntu] (item=username) => changed=false
ansible_loop_var: item
dest: /home/username/bin/tmux-cssh
elapsed: 0
gid: 100
group: users
item:
UserName: username
mode: ‘0755’
msg: ‘An unknown error occurred: HTTPSConnection.init() got an unexpected keyword argument ‘‘cert_file’’’
owner: username
size: 3530
state: file
uid: 1002
url: https://raw.githubusercontent.com/peikk0/tmux-cssh/master/tmux-cssh

According to https://docs.python.org/3.12/library/http.client.html#http.client.HTTPSConnection

Changed in version 3.12: The deprecated key_file, cert_file and check_hostname parameters have been removed.

This was fixed in ansible-core version 2.16.0 (or above) thus the simple solution, if possible, is to run ansible-core version 2.16.0 or above.

Regards

Thanks. I’ll have to see if I can get that installed. I tried last night to get it installed, but didn’t work out. I’m pretty sure I know why though, just have to mess with it more. :blush: