title: Basic ansible command-line fails with module failure error
body: <p>My ansible command fails with error as below:</p>
  
  <pre><code>$ ansible all  -i /tmp/myhosts -m shell -a 'uname -a' -u user1 -k 
  SSH password: 
  host1.mycomp.com | FAILED! =&gt; {
      "changed": false, 
      "module_stderr": "", 
      "module_stdout": "  File \"/home/user1/.ansible/tmp/ansible-tmp-1556597037.27-168849792658772/AnsiballZ_command.py\", line 39\r\n    with open(module, 'wb') as f:\r\n            ^\r\nSyntaxError: invalid syntax\r\n", 
      "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", 
      "rc": 1
  }
  </code></pre>
  
  <p>I do not know how to See stdout/stderr from single command line. Any suggestion how to view std out/err would be great.</p>
  
  <pre><code>$ more /tmp/myhosts
  [mybox]
  host1.mycomp.com
  [dev]
  host1.mycomp.com
  [allserver:children]
  mybox
  dev
  [allserver:vars]
  variable=somestring
  </code></pre>
  
  <p>/tmp/hosts has good permissions.</p>
  
  <p>I'm also able to ssh to the target server using the userid</p>
  
  <pre><code>$ ssh user1@host1.mycomp.com
  Password: 
  Last login: Tue Apr 30 00:03:57 2019 from 10.123.235.126
  $ hostname
  host1
  </code></pre>
  
  <pre><code>ansible --version
  2.7.1
  </code></pre>
  
  <p>Can you please help me overcome the error ?</p>