# Get\_url

**URL:** <https://forum.ansible.com/t/get-url/38742>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [April 10, 2024, 5:35am UTC](https://forum.ansible.com/t/get-url/38742 "2024-04-10T05:35:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prady\_A](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/prady_a/32/4792_2.png) [@Prady\_A](https://forum.ansible.com/u/Prady_A)\
**Post date:** [April 10, 2024, 5:35am UTC](https://forum.ansible.com/t/get-url/38742/1 "2024-04-10T05:35:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [April 10, 2024, 6:12am UTC](https://forum.ansible.com/t/get-url/38742/2 "2024-04-10T06:12:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Prady\_A](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/prady_a/32/4792_2.png) [@Prady\_A](https://forum.ansible.com/u/Prady_A)\
**Post date:** [April 10, 2024, 6:54am UTC](https://forum.ansible.com/t/get-url/38742/3 "2024-04-10T06:54:27Z")

</div>

Thanks but both curl and wget command not found…

Regards

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [April 10, 2024, 7:15am UTC](https://forum.ansible.com/t/get-url/38742/4 "2024-04-10T07:15:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Prady\_A](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/prady_a/32/4792_2.png) [@Prady\_A](https://forum.ansible.com/u/Prady_A)\
**Post date:** [April 10, 2024, 7:55am UTC](https://forum.ansible.com/t/get-url/38742/5 "2024-04-10T07:55:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [April 10, 2024, 8:08am UTC](https://forum.ansible.com/t/get-url/38742/6 "2024-04-10T08:08:37Z")

</div>

> 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/](https://testssl.sh/)).

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke

---

<div class="post-metadata">

**Author:** ![Prady\_A](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/prady_a/32/4792_2.png) [@Prady\_A](https://forum.ansible.com/u/Prady_A)\
**Post date:** [April 10, 2024, 5:14am UTC](https://forum.ansible.com/t/get-url/38742/7 "2024-04-10T05:14:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Prady\_A](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/prady_a/32/4792_2.png) [@Prady\_A](https://forum.ansible.com/u/Prady_A)\
**Post date:** [April 10, 2024, 10:12am UTC](https://forum.ansible.com/t/get-url/38742/8 "2024-04-10T10:12:54Z")

</div>

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
