Netgate Store

Author Topic: Ansible integration - python in a different location  (Read 51 times)

0 Members and 1 Guest are viewing this topic.

Offline dsgnr

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Ansible integration - python in a different location
« on: Yesterday at 12:33:45 pm »
Hi guys,
I'm looking to run playbooks against my pfSense installations.

When running a generic ping from Ansible to the application, I get the following error:

Code: [Select]
10.50.3.1 | FAILED! => {
    "changed": false,
    "module_stderr": "/bin/sh: /usr/bin/python: not found\n",
    "module_stdout": "",
    "msg": "MODULE FAILURE",
    "rc": 127
}

When logging onto the application via shell, I can see Python 2.7 is installed, just under a different location:

Code: [Select]
[2.4.3-RELEASE][root@hostname_here]/root: which python2.7
/usr/local/bin/python2.7

Does anyone have any experience with changing this, or a workaround at all?

I'm not all that familiar with FreeBSD and obviously don't want to break anything  :o

Any advise would be great.