# Unknown Error HTTPSConnection.\_\_init\_\_

**URL:** <https://forum.ansible.com/t/unknown-error-httpsconnection-init/38811>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [June 16, 2024, 12:38pm UTC](https://forum.ansible.com/t/unknown-error-httpsconnection-init/38811 "2024-06-16T12:38:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcpetro](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jcpetro](https://forum.ansible.com/u/jcpetro)\
**Post date:** [June 16, 2024, 12:38pm UTC](https://forum.ansible.com/t/unknown-error-httpsconnection-init/38811/1 "2024-06-16T12:38:48Z")

</div>

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](https://raw.githubusercontent.com/peikk0/tmux-cssh/master/tmux-cssh)

---

<div class="post-metadata">

**Author:** ![Jorge\_Rua1](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@Jorge\_Rua1](https://forum.ansible.com/u/Jorge_Rua1)\
**Post date:** [June 16, 2024, 1:26pm UTC](https://forum.ansible.com/t/unknown-error-httpsconnection-init/38811/2 "2024-06-16T13:26:43Z")

</div>

According to [https://docs.python.org/3.12/library/http.client.html#http.client.HTTPSConnection](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

---

<div class="post-metadata">

**Author:** ![jcpetro](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jcpetro](https://forum.ansible.com/u/jcpetro)\
**Post date:** [June 16, 2024, 2:19pm UTC](https://forum.ansible.com/t/unknown-error-httpsconnection-init/38811/3 "2024-06-16T14:19:23Z")

</div>

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. 😊
