# ssh problem ( ansible with pfsense )

**URL:** <https://forum.ansible.com/t/ssh-problem-ansible-with-pfsense/38373>\
**Category:** Ansible Project\
**Created:** [August 25, 2023, 9:55am UTC](https://forum.ansible.com/t/ssh-problem-ansible-with-pfsense/38373 "2023-08-25T09:55:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ala\_Karmous](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@Ala\_Karmous](https://forum.ansible.com/u/Ala_Karmous)\
**Post date:** [August 25, 2023, 9:55am UTC](https://forum.ansible.com/t/ssh-problem-ansible-with-pfsense/38373/1 "2023-08-25T09:55:02Z")

</div>

Hello Everyone,  
i got this problem when i try to connect ssh Ansible → PfSense:

#ansible all -m ping  
x.x.x.x | FAILED! =\> {  
“changed”: false,  
“module\_stderr”: “Shared connection to x.x.x.x closed.\r\n”,  
“module\_stdout”: “/bin/sh: /usr/bin/python: not found\r\n”,  
“msg”: “The module failed to execute correctly, you probably need to set the interpreter.\nSee stdout/stderr for the exact error”,  
“rc”: 127  
}

and python3 was installed in Ansible Master:

# which python3

/usr/bin/python3

---

<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:** [August 28, 2023, 2:30pm UTC](https://forum.ansible.com/t/ssh-problem-ansible-with-pfsense/38373/2 "2023-08-28T14:30:41Z")

</div>

Hii,

“master” isn’t really a concept in the ansible world - there is usually one “control node” and one or more “managed nodes”.

> From your post I assume you installed python3 on the control node.  
> That is good, but the error is from your managed node, which does not have a python executable.  
> But, a quick google search reveals that pfSense requires you to explicitly say which version, i.e. python3.8.  
> If that is the case, you should configure that in your inventory:

[https://docs.ansible.com/ansible/latest/reference\_appendices/python\_3\_support.html#using-python-3-on-the-managed-machines-with-commands-and-playbooks](https://docs.ansible.com/ansible/latest/reference_appendices/python_3_support.html#using-python-3-on-the-managed-machines-with-commands-and-playbooks)
