title: Issues getting Ansible to work with Boot2Docker
body: <p>I'm using an Ansible playbook to manage installation of Docker containers. I have the following playbook, which installs Cassandra:</p>
  
  <p>I want to run this playbook locally, and have it install into Boot2Docker. I am able to SSH into Boot2Docker using the instructions from <a href="https://stackoverflow.com/a/25561071/1161906">this answer</a>: </p>
  
  <pre><code>$ ssh -i $HOME/.ssh/id_boot2docker -p 2022 docker@localhost
                          ##        .
                    ## ## ##       ==
                 ## ## ## ##      ===
             /""""""""""""""""\___/ ===
        ~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ /  ===- ~~~
             \______ o          __/
               \    \        __/
                \____\______/
   _                 _   ____     _            _
  | |__   ___   ___ | |_|___ \ __| | ___   ___| | _____ _ __
  | '_ \ / _ \ / _ \| __| __) / _` |/ _ \ / __| |/ / _ \ '__|
  | |_) | (_) | (_) | |_ / __/ (_| | (_) | (__|   &lt;  __/ |
  |_.__/ \___/ \___/ \__|_____\__,_|\___/ \___|_|\_\___|_|
  Boot2Docker version 1.4.1, build master : 86f7ec8 - Tue Dec 16 23:11:29 UTC 2014
  Docker version 1.4.1, build 5bc2ff8
  docker@boot2docker:~$
  </code></pre>
  
  <p>I made an inventory file with the same SSH settings:</p>
  
  <pre><code>[local]
  localhost ansible_ssh_port=2022 ansible_ssh_user=docker ansible_ssh_private_key_file=~/.ssh/id_boot2docker
  </code></pre>
  
  <p>But when I run the playbook, it fails with the error "<code>/bin/sh: /usr/bin/python: not found</code>":</p>
  
  <pre><code>$ ansible-playbook db-setup.yml -i hosts.local
  
  PLAY [local] ****************************************************************** 
  
  GATHERING FACTS *************************************************************** 
  failed: [localhost] =&gt; {"failed": true, "parsed": false}
  /bin/sh: /usr/bin/python: not found
  OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
  debug1: Reading configuration data /etc/ssh_config
  debug1: /etc/ssh_config line 20: Applying options for *
  debug1: /etc/ssh_config line 102: Applying options for *
  debug1: auto-mux: Trying existing master
  debug1: mux_client_request_session: master session id: 2
  Shared connection to localhost closed.
  
  
  TASK: [Database] ************************************************************** 
  FATAL: no hosts matched or all hosts have already failed -- aborting
  
  
  PLAY RECAP ******************************************************************** 
         to retry, use: --limit @/Users/bryan/db-setup.retry
  localhost                  : ok=0    changed=0    unreachable=0    failed=1   
  </code></pre>
  
  <p>I still get the error even if "gather facts" is turned off. If I SSH into Boot2Docker, I can see that <code>/usr/bin/python</code> exists:</p>
  
  <pre><code>$ ssh -i $HOME/.ssh/id_boot2docker -p 2022 docker@localhost
  ... 
  docker@boot2docker:~$ which python
  </code></pre>