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

El dom, 16 jun 2024 a las 13:39, John Petro (<[email protected]>)
escribió:

> 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
>
> --
> 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 [email protected].
> 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
> <https://groups.google.com/d/msgid/ansible-project/CAPAjob_hfNhx9vYghW_Gam-oNTf35gWQ%2BHyu5HP9%2BdOJw%2BOS9w%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFtje5NHregyaGah82Ba5uQ79pHewgL6nSkkBss5owY5Car_8Q%40mail.gmail.com.

Reply via email to