ansible error python not found

QuestionsCategory: Questionsansible error python not found
Su Chan Staff asked 1 year ago
Spread the love

i’m receiving this error when i try to run ansible

web-host1 | FAILED! => {

“changed”: false,

“module_stderr”: “Shared connection to 3.8.156.202 closed.\r\n”,

“module_stdout”: “/bin/sh: 1: /usr/bin/python: not found\r\n”,

“msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”,

“rc”: 127

}

1 Answers
Siddique Mustaph Staff answered 1 year ago

This is caused because python is not installed on the host

ssh onto host and install python-minimal

apt-get update

apt-get install python-minimal