Prady_A
(Prady A)
1
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
dnmvisser
(Dick Visser)
2
Are you able to use curl on that remote host with the same URL and credentials?
Prady_A
(Prady A)
3
Thanks but both curl and wget command not found…
Regards
dnmvisser
(Dick Visser)
4
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
(Prady A)
5
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
racke
(Stefan Hornburg)
6
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
Prady_A
(Prady A)
7
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
Prady_A
(Prady A)
8
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