Skip to content

TROUBLESHOOTING ansible MODULE FAILURE

Why do that

When trying to deploy for the first time on new servers.

Error

LOG: start punchplatform deployment...
LOG: using the ssh user: loicjardin
LOG: using the additional paramters: -Kk
SSH password:
SUDO password[defaults to SSH password]:

PLAY [punchplatform_cluster] ********************************************************************************************************************************************************

TASK [Gathering Facts] **************************************************************************************************************************************************************
fatal: [test01]: FAILED! => {"changed": false, "module_stderr": "", "module_stdout": "/bin/sh: 1: /usr/bin/python: not found\r\n", "msg": "MODULE FAILURE", "rc": 0}  

PLAY RECAP **************************************************************************************************************************************************************************
test01                     : ok=0    changed=0    unreachable=0    failed=1

What to do

Install python-apt package on remote servers manually:

$ ssh <user>@<server_name>
$ sudo apt update
$ sudo apt install python-apt

Then, continue ton deploy punchplatform !

If the error remain, contact support at support@punchplatform.com