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

**URL:** <https://forum.ansible.com/t/one-host-in-an-inventory-fail-module-failure-all-others-works/26312>\
**Category:** Ansible Project\
**Created:** [December 16, 2017, 8:45pm UTC](https://forum.ansible.com/t/one-host-in-an-inventory-fail-module-failure-all-others-works/26312 "2017-12-16T20:45:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jean\_Roux](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@Jean\_Roux](https://forum.ansible.com/u/Jean_Roux)\
**Post date:** [December 16, 2017, 8:45pm UTC](https://forum.ansible.com/t/one-host-in-an-inventory-fail-module-failure-all-others-works/26312/1 "2017-12-16T20:45:25Z")

</div>

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.)

---

<div class="post-metadata">

**Author:** ![Jean\_Roux](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@Jean\_Roux](https://forum.ansible.com/u/Jean_Roux)\
**Post date:** [December 16, 2017, 8:51pm UTC](https://forum.ansible.com/t/one-host-in-an-inventory-fail-module-failure-all-others-works/26312/2 "2017-12-16T20:51:25Z")

</div>

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)]

---

<div class="post-metadata">

**Author:** ![Jean\_Roux](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@Jean\_Roux](https://forum.ansible.com/u/Jean_Roux)\
**Post date:** [December 16, 2017, 9:19pm UTC](https://forum.ansible.com/t/one-host-in-an-inventory-fail-module-failure-all-others-works/26312/3 "2017-12-16T21:19:50Z")

</div>

One suggestion on the web I found, here, [https://github.com/ansible/ansible/issues/21468](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.

---

<div class="post-metadata">

**Author:** ![Jean\_Roux](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@Jean\_Roux](https://forum.ansible.com/u/Jean_Roux)\
**Post date:** [December 16, 2017, 9:25pm UTC](https://forum.ansible.com/t/one-host-in-an-inventory-fail-module-failure-all-others-works/26312/4 "2017-12-16T21:25:31Z")

</div>

This website [https://www.josharcher.uk/code/ansible-python-connection-failure-ubuntu-server-1604/](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.

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [December 23, 2017, 10:33am UTC](https://forum.ansible.com/t/one-host-in-an-inventory-fail-module-failure-all-others-works/26312/5 "2017-12-23T10:33:02Z")

</div>

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
