title: Shared connection to server failed (trying to run an Ansible playbook)
body: <p>I am quite new to SSH servers and Ansible so this might be a dumb question.</p>
  
  <p>Tried to run an Ansible playbook whilst accessing the server with a private key using the bash command below.</p>
  
  <pre><code>ansible-playbook dbserv.yml -i hosts --limit local-servers --private-key=(where I put the private key)
  </code></pre>
  
  <p>However, I am getting this error:</p>
  
  <blockquote>
    <p>fatal: [xxx]: FAILED! => {
        "changed": false, 
        "failed": true, 
        "invocation": {
            "module_name": "setup"
        }, 
        "module_stderr": "Shared connection to xxx closed.\r\n", 
        "module_stdout": "/bin/sh: 1: /usr/bin/python2.7: not found\r\n", 
        "msg": "MODULE FAILURE" }</p>
  </blockquote>
  
  <p>I have Python installed on my computer so I do not understand why I am getting this error.</p>
  
  <p>OS environment:
  Ubuntu 16.04.1</p>