[ansible-project] Get_url

86 views
Skip to first unread message

Prady A

unread,
Apr 10, 2024, 1:36:11 AM4/10/24
to ansible...@googlegroups.com
Hi experts

I ve been trying get_url in Aix server but no luck yet..

 
In Linux the below ansible code is working

 get_url: 
  dest: /tmp 
  url: https:// 
  username: <> 
  password: <> 

 But in AIX machine it is giving below error. 

.. Request failed:<urlopen error A failure in the SSL library occurred>


Any pointer or advice pls..

Regards 
Prady

Dick Visser

unread,
Apr 10, 2024, 2:13:11 AM4/10/24
to ansible...@googlegroups.com
Are you able to use curl on that remote host with the same URL and credentials?

Sent from Gmail Mobile


--
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/CAEuB3AqzPGi1jF3Za46_NHPGUxrNbOG6115e7vJj-YXtT%3D8n8g%40mail.gmail.com.

Prady A

unread,
Apr 10, 2024, 2:54:52 AM4/10/24
to ansible...@googlegroups.com
Thanks but both curl and wget command not found..

Regards 

Dick Visser

unread,
Apr 10, 2024, 3:16:04 AM4/10/24
to ansible...@googlegroups.com
Too bad, that would have helped to indicate SSL issues on that remote host.
Try running with more verbosity (-vvv) and see what that returns.

Prady A

unread,
Apr 10, 2024, 3:56:17 AM4/10/24
to ansible...@googlegroups.com
Thanks dick

Yes by default those commands doesn’t comes oob. 

Tried with verbosity mode.
Request failed:<urlopen error A failure in the SSL library occurred (ssl.c:1125)>”

Regards 




On Wed, 10 Apr 2024 at 16:15, Dick Visser <dnmv...@gmail.com> wrote:
Too bad, that would have helped to indicate SSL issues on that remote host.
Try running with more verbosity (-vvv) and see what that returns.

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

Stefan Hornburg (Racke)

unread,
Apr 10, 2024, 4:09:10 AM4/10/24
to ansible...@googlegroups.com
On 10/04/2024 09:55, Prady A wrote:
> Thanks dick
>
> Yes by default those commands doesn’t comes oob.
>
> Tried with verbosity mode.
> Request failed:<urlopen error A failure in the SSL library occurred (ssl.c:1125)>”

It is possible that the SSL setup on the target is too old. You could check that
with the "testssl" script from the controller (https://testssl.sh/).

Regards
Racke

>
> On Wed, 10 Apr 2024 at 16:15, Dick Visser <dnmv...@gmail.com <mailto:dnmv...@gmail.com>> wrote:
>
> Too bad, that would have helped to indicate SSL issues on that remote host.
> Try running with more verbosity (-vvv) and see what that returns.
>
> --
> 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 <mailto:ansible-project%2Bunsu...@googlegroups.com>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAF8BbLZmEaBXSvNPCJK7cAmxmm0uq%3DEwPq27omdkLiq8eL5beQ%40mail.gmail.com <https://groups.google.com/d/msgid/ansible-project/CAF8BbLZmEaBXSvNPCJK7cAmxmm0uq%3DEwPq27omdkLiq8eL5beQ%40mail.gmail.com>.
>
> --
> 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 <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAEuB3ArncgH9yXxg_Gh_v8xqQ9NQcgNNV8xm_HABkN5kiBRRsA%40mail.gmail.com <https://groups.google.com/d/msgid/ansible-project/CAEuB3ArncgH9yXxg_Gh_v8xqQ9NQcgNNV8xm_HABkN5kiBRRsA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

--
Automation expert - Ansible and friends
Linux administrator & Debian maintainer
Perl Dancer & conference hopper


Prady A

unread,
Apr 10, 2024, 4:45:50 AM4/10/24
to ansible...@googlegroups.com
Thank you I see. I ll check the script. Can we call the execute the get_url without ssl certificate ?

This is ansible verbose report. Seems the SSL is too old.

<server1234> Failed to connect to the host via ssh: OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 11: Applying options for *
debug1: auto-mux: Trying existing master
debug2: fd 3 setting O_NONBLOCK
debug2: mux_client_hello_exchange: master version 4
debug3: mux_client_forwards: request forwardings: 0 local, 0 remote
debug3: mux_client_request_session: entering
debug3: mux_client_request_alive: entering
debug3: mux_client_request_alive: done pid = 4632
debug3: mux_client_request_session: session request sent
debug1: mux_client_request_session: master session id: 2
debug3: mux_client_read_packet: read header failed: Broken pipe
debug2: Received exit status from master 1
Shared connection to server1234 closed.

Regards

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/1564c781-cba4-46f1-9228-9a4fac8ef2a7%40linuxia.de.

Prady A

unread,
Apr 10, 2024, 6:13:20 AM4/10/24
to ansible...@googlegroups.com
Yes you are right.
The ssl certificate was pretty old and I ve no idea how to update it also.

So I skipped Ssl verification and it worked 
get_url: 
  dest: /tmp 
  url: https:// 
  username: <> 
  password: <> 
   validate_certs: no

Thank you again both of you.

Regards
PD
Reply all
Reply to author
Forward
0 new messages