Get_url

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:

Any pointer or advice pls…

Regards
Prady

Are you able to use curl on that remote host with the same URL and credentials?

Thanks but both curl and wget command not found…

Regards

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.

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

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

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.

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

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