Looking at the source:
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

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

On Fri, Jul 29, 2022 at 9:18 AM dulhaver via Ansible Project <
[email protected]> wrote:

> 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)?
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/1283806829.494.1659107877108%40office.mailbox.org
> <https://groups.google.com/d/msgid/ansible-project/1283806829.494.1659107877108%40office.mailbox.org?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CALF5A-LcCKU%2BAQG_1h5mCoULADmUkYPAmdc%2BXrihjtVeqi-%3DqA%40mail.gmail.com.

Reply via email to