ssh problem ( ansible with pfsense )

74 views
Skip to first unread message

Ala Karmous

unread,
Aug 28, 2023, 9:34:20 AM8/28/23
to Ansible Project
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

Dick Visser

unread,
Aug 28, 2023, 10:31:17 AM8/28/23
to ansible...@googlegroups.com
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:



--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/8047561d-cea8-4308-85c4-60248db8bae8n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages