I have made a similar task to try start node for which I pass in the same 'start' arguement
"msg": "non-zero return code", "rc": 127, "start": "2020-09-02 19:07:49.395993", "stderr": "sh:
control.postcodesio.nodejs.sh: No such file or directory",
I have tried a different approach but I still get the same No such file or directory
TASK Change Directory] ***********************************************************************************************************************************************
changed: [hostname]
TASK [command] *********************************************************************************************************************************************************************************************
changed: [
hostname ]
changed: [hostname]
TASK [debug] ***********************************************************************************************************************************************************************************************
ok: [hostname] => (item=dir_out.stdout_lines) => {
"changed": false,
"dir_out.stdout_lines": [
],
"item": "dir_out.stdout_lines"
}
ok: [hostname] => (item=dir_out.stdout_lines) => {
"changed": false,
"dir_out.stdout_lines": [
],
"item": "dir_out.stdout_lines"
}
TASK start nodejs *****************************************************************************************************************************************
fatal: [hostname]: FAILED! => {"changed": true, "cmd": ["sh", "
control.postcodesio.nodejs.sh", "start"], "delta": "0:00:00.007772", "end": "2020-09-02 19:07:49.098795", "msg": "non-zero return code", "rc": 127, "start": "2020-09-02 19:07:49.091023", "stderr": "sh:
control.postcodesio.nodejs.sh: No such file or directory", "stderr_lines": ["sh:
control.postcodesio.nodejs.sh: No such file or directory"], "stdout": "", "stdout_lines": []}
Any ideas much appreciated.