One host in an Inventory fail "MODULE FAILURE", all others works?

Hi, I am new to Ansible. I am testing simple ansible script like “ansible -m shell -a ‘df -h’ all -i hosts-file.ini” with several Raspberry Pi’s. All come back successfully, accept one host, on any type of command, it looks like below, (the ssh keys works, I can log into the host, etc.)

Version, on a Mac:

ansible --version

ansible 2.4.2.0

config file = None

configured module search path = [u’/Users/jean/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]

ansible python module location = /Library/Python/2.7/site-packages/ansible

executable location = /usr/local/bin/ansible

python version = 2.7.10 (default, Jul 15 2017, 17:16:57) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)]

One suggestion on the web I found, here, https://github.com/ansible/ansible/issues/21468, proposes:

ansible -m ping all -i hosts-file.ini -e ansible_python_interpreter=/usr/bin/python2.7

This also does not work.

This website https://www.josharcher.uk/code/ansible-python-connection-failure-ubuntu-server-1604/ recons, for Ubuntu, one must install Python 2.7.

I do not think this is the problem, as the other hosts does work.

This sounds like some sort of integrity problem with python on that host.
Try to check the affected files it’s complainig about, or try apt-get purge the package and reinstall.

Dick