I faced the same error in ubuntu machine you should install python not python3
ansible host -m ping maf | FAILED! => { "changed": false, "module_stderr": "Shared connection to xxxxxxx closed.\r\n", "module_stdout": "/bin/sh: 1: /usr/bin/python: not found\r\n", "msg": "MODULE FAILURE", "rc": 127 } after installing python # apt install python ansible host -m ping maf | SUCCESS => { "changed": false, "ping": "pong" } On Wednesday, April 11, 2018 at 5:57:20 AM UTC+4, Derek Lai wrote: > > Hi > > Anyone used Ansible to automate tasks in Docker DataCenter (EE)? It looks > like it is using a Linux variant, Moby Linux. I am able to ssh into it to > perform the backup operation. When I tried to do ansible ddc-ucp -m ping, I > get the following error: LM17-T00242:sensu dereklai$ ansible ddc-ucp -m ping > | FAILED! => { > "changed": false, > "module_stderr": "Shared connection to closed.\r\n", > "module_stdout": "/bin/sh: /usr/bin/python3: not found\r\n", > "msg": "MODULE FAILURE", > "rc": 127 > } > > Looks like python or python3 is not installed. Not sure if I am allowed to > install python. Will Ansible container work? > > > Thanks, > > Derek > > -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/348a2a57-d73f-48ef-942a-cbc947e8a138%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.