# While running Playbook Ansible is not using the Proxy

**URL:** <https://forum.ansible.com/t/while-running-playbook-ansible-is-not-using-the-proxy/42323>\
**Category:** Get Help\
**Created:** [May 1, 2025, 6:31am UTC](https://forum.ansible.com/t/while-running-playbook-ansible-is-not-using-the-proxy/42323 "2025-05-01T06:31:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pkhadka](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@pkhadka](https://forum.ansible.com/u/pkhadka)\
**Post date:** [May 1, 2025, 6:31am UTC](https://forum.ansible.com/t/while-running-playbook-ansible-is-not-using-the-proxy/42323/1 "2025-05-01T06:31:04Z")

</div>

I have setup Ansible in Win 11 via WSL.

- I have configured the Proxy setting:  
\*\* Config of my host file:  
[remote\_node]  
remote-node-1 ansible\_host=10.10.10.1

\*\* .ssh/config:  
Host jump-server  
HostName 172.25.25.25  
User MYDOMAIN\user\_jump

Host remote-node-1  
HostName 10.10.10.10  
User user\_node  
ProxyJump jump-server

## Config of Playbook:

- name: Manage node  
hosts: remote\_node  
gather\_facts: false  
tasks:
  - name: Testing to check the version  
ansible.netcommon.cli\_command:  
command: show version

~/myansible$ ansible-playbook -i inventories/network/hosts playbooks/manage-node.yml -vvv

- While debugging the connectivity in the network firewall log I have seen Ansible is directly trying to access the remote node.
- To Access the remote node it has to use the proxy Jump server

Can you please help to fix this problem to use the proxy while running the playbook

---

<div class="post-metadata">

**Author:** ![wayt](https://avatars.discourse-cdn.com/v4/letter/w/3be4f8/32.png) [@wayt](https://forum.ansible.com/u/wayt)\
**Post date:** [May 1, 2025, 4:51pm UTC](https://forum.ansible.com/t/while-running-playbook-ansible-is-not-using-the-proxy/42323/2 "2025-05-01T16:51:08Z")

</div>

Assuming you are using `ansible_ssh_type` of `libssh`, the default is `auto` so you may need to inspect your logs to check for `paramiko` in your environment.

If it’s `libssh` you need to look at:

> **[ansible.netcommon.libssh connection – Run tasks using libssh for ssh...](https://docs.ansible.com/ansible/latest/collections/ansible/netcommon/libssh_connection.html#parameter-proxy_command)**

---

<div class="post-metadata">

**Author:** ![shertel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/shertel/32/1241_2.png) [@shertel](https://forum.ansible.com/u/shertel)\
**Post date:** [May 1, 2025, 5:24pm UTC](https://forum.ansible.com/t/while-running-playbook-ansible-is-not-using-the-proxy/42323/3 "2025-05-01T17:24:11Z")

</div>

Try using the variable `ansible_paramiko_proxy_command` instead of `ansible_ssh_common_args`. If you don’t have ansible-pylibssh installed, `ansible.netcommon.network_cli` will use `ansible.builtin.paramiko` by default, which doesn’t use the variable `ansible_ssh_common_args` in ansible-core \>=2.18.

I noticed a bunch of outdated networking examples: [Update networking jumphost examples by s-hertel · Pull Request #2586 · ansible/ansible-documentation · GitHub](https://github.com/ansible/ansible-documentation/pull/2586).

If that’s not the issue, sharing the output with `-vvvv` would be useful.
