Example of how to make ping ans solve the problem: import zipfile\r\nImportError: No module named zipfile, "msg": "MODULE FAILURE"
One of the steps in a tutorial said that it was needed to install python-minimal in order for being able of manage the servers, but this later shows the error when trying to connect to the server.
The first step actually is to share your public key with the server, this way the server will know who you are. You can create your key with the following steps:
ssh-keygen -t rsa -b 4096
Where the flags and their arguments are optional.
ssh-copy-id sammy@your_server_ip
This command will add your public key to the ~/.ssh/authorized_keys file. You can do this manually, but the following steps are needed:
cat ~/.ssh/id_rsa.pub
cat ~/.ssh/id_rsa.pub
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
The zipfile error was because the installation of python through python-minimal didn't install this package, one way to solve this is install the package or install the complete python.
Now you can make a ping to know if you can reach the server:
ansible <ip> -m ping -u <user> <-i hosts>