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 On Sat, 16 Dec 2017 at 21:45, Jéan Roux <[email protected]> wrote: > 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.) > > ------------------------------------------------------------------------------------------------------------- > > host1 | FAILED! => { > > "changed": false, > > "module_stderr": "Shared connection to iotplay.asuscomm.com > closed.\r\n", > > "module_stdout": "Traceback (most recent call last):\r\n File > \"/home/pi/.ansible/tmp/ansible-tmp-1513456624.46-27928346050531/command.py\", > line 18, in <module>\r\n import tempfile\r\n File > \"/usr/lib/python2.7/tempfile.py\", line 35, in <module>\r\n from random > import Random as _Random\r\nEOFError: EOF read where object expected\r\n", > > "msg": "MODULE FAILURE", > > "rc": 0 > > } > > ------------------------------------------------------------------------------------------------------------- > Can someone point me in the right direction to solve this please? > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/45c710ee-d153-4877-8e97-3849acb618f6%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/45c710ee-d153-4877-8e97-3849acb618f6%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Dick Visser GÉANT Want to join us? We're hiring: https://www.geant.org/jobs -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwORKbTHx5_b3P%2B7Rqx_VkyLy3ehu5PhWtvMg9mRpRg7ow%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
