Unknown Error HTTPSConnection.__init__

38 views
Skip to first unread message

John Petro

unread,
Jun 16, 2024, 8:39:18 AM (13 days ago) Jun 16
to ansible...@googlegroups.com
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

Jorge Rúa

unread,
Jun 16, 2024, 9:27:20 AM (13 days ago) Jun 16
to ansible...@googlegroups.com
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

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAPAjob_hfNhx9vYghW_Gam-oNTf35gWQ%2BHyu5HP9%2BdOJw%2BOS9w%40mail.gmail.com.

John Petro

unread,
Jun 16, 2024, 10:19:52 AM (13 days ago) Jun 16
to ansible...@googlegroups.com
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.  😊

Reply all
Reply to author
Forward
0 new messages