# to which local bash command does get\_url translate to?

**URL:** <https://forum.ansible.com/t/to-which-local-bash-command-does-get-url-translate-to/36923>\
**Category:** Ansible Project\
**Created:** [July 29, 2022, 3:17pm UTC](https://forum.ansible.com/t/to-which-local-bash-command-does-get-url-translate-to/36923 "2022-07-29T15:17:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dulhaver](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/dulhaver/32/1061_2.png) [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Post date:** [July 29, 2022, 3:17pm UTC](https://forum.ansible.com/t/to-which-local-bash-command-does-get-url-translate-to/36923/1 "2022-07-29T15:17:57Z")

</div>

I am running ansible playbooks against hosts in different networks or firewall-zones and need to fetch confg-files from a local BitBucket server at times with get\_url TASKS. connectivoty to that BitBucket Server is challenging, to put it nicely.

In order to troubleshoot how to make this work it would be helpful to understand which bash/shell command is executed on the host via the get\_url module.

1. is the understanding that Ansible modules somehow translate to shell-commands on a host (and likewise there must be a shell eqiovalent command to each Ansible module)?
2. if so, … what is the local command initiated by get\_url (my guess would be wget)?

---

<div class="post-metadata">

**Author:** ![Richard\_Megginson](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/richard_megginson/32/4540_2.png) [@Richard\_Megginson](https://forum.ansible.com/u/Richard_Megginson)\
**Post date:** [July 29, 2022, 3:27pm UTC](https://forum.ansible.com/t/to-which-local-bash-command-does-get-url-translate-to/36923/2 "2022-07-29T15:27:54Z")

</div>

Looking at the source: [https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/get\_url.py#L381](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/get_url.py#L381)

fetch\_url is defined here: [https://github.com/ansible/ansible/blob/devel/lib/ansible/module\_utils/urls.py#L1803](https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/urls.py#L1803)

Which is _not_ forking a cli program, it is using a python library, most likely [https://github.com/ansible/ansible/blob/e4890afc4e2af6c5126d056a2b4fdb1f1f122cf6/lib/ansible/module\_utils/urls.py#L1276](https://github.com/ansible/ansible/blob/e4890afc4e2af6c5126d056a2b4fdb1f1f122cf6/lib/ansible/module_utils/urls.py#L1276)
