title: Vagrant Ansible provisioning SSH error
body: <p>I'm trying to do some Vagrant/Ansible stuff, but running into problems from the start. Here's my Vagrantfile:</p>
  
  <pre><code># -*- mode: ruby -*-
  # vi: set ft=ruby :
  
  Vagrant.configure("2") do |config|
    config.vm.box = "ubuntu/trusty64"
  
    config.vm.network "private_network", ip: "192.168.6.66"
  
    config.vm.provider "virtualbox" do |vb|
      vb.customize ["modifyvm", :id, "--memory", "2048"]
    end
  
    config.vm.provision "ansible" do |ansible|
      ansible.playbook = "site.yml"
    end
  end
  </code></pre>
  
  <p>site.yml is simply</p>
  
  <pre><code>---
  - name: Bring up server with MySQL, Nginx, and PHP-FPM
    hosts: all
    remote_user: root
  
    roles:
      - common
  </code></pre>
  
  <p>and common/tasks/main.yml is</p>
  
  <pre><code>---
  - name: Update apt
    apt: update_cache=yes
  </code></pre>
  
  <p>When doing <code>vagrant up</code>, the output is</p>
  
  <pre><code>Bringing machine 'default' up with 'virtualbox' provider...
  ==&gt; default: Importing base box 'ubuntu/trusty64'...
  ==&gt; default: Matching MAC address for NAT networking...
  ==&gt; default: Checking if box 'ubuntu/trusty64' is up to date...
  ==&gt; default: Setting the name of the VM: ansible-provision_default_1412793587231_72507
  ==&gt; default: Clearing any previously set forwarded ports...
  ==&gt; default: Fixed port collision for 22 =&gt; 2222. Now on port 2200.
  ==&gt; default: Clearing any previously set network interfaces...
  ==&gt; default: Preparing network interfaces based on configuration...
      default: Adapter 1: nat
      default: Adapter 2: hostonly
  ==&gt; default: Forwarding ports...
      default: 22 =&gt; 2200 (adapter 1)
  ==&gt; default: Running 'pre-boot' VM customizations...
  ==&gt; default: Booting VM...
  ==&gt; default: Waiting for machine to boot. This may take a few minutes...
      default: SSH address: 127.0.0.1:2200
      default: SSH username: vagrant
      default: SSH auth method: private key
      default: Warning: Connection timeout. Retrying...
  ==&gt; default: Machine booted and ready!
  ==&gt; default: Checking for guest additions in VM...
  ==&gt; default: Checking for host entries
  ==&gt; default: Configuring and enabling network interfaces...
  ==&gt; default: Mounting shared folders...
      default: /vagrant =&gt; /Users/bram/Projects/Brammm/ansible-provision
  ==&gt; default: Running provisioner: ansible...
  
  PLAY [Bring up server with MySQL, Nginx, and PHP-FPM] ************************* 
  
  GATHERING FACTS *************************************************************** 
  fatal: [default] =&gt; SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue
  
  TASK: [common | Update apt] *************************************************** 
  FATAL: no hosts matched or all hosts have already failed -- aborting
  
  
  PLAY RECAP ******************************************************************** 
             to retry, use: --limit @/Users/bram/site.retry
  
  default                    : ok=0    changed=0    unreachable=1    failed=0   
  
  Ansible failed to complete successfully. Any error output should be
  visible above. Please fix these errors and try again.
  </code></pre>
  
  <p>If I look at .vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory, I see the following:</p>
  
  <pre><code>default ansible_ssh_host=127.0.0.1 ansible_ssh_port=2200
  </code></pre>
  
  <p>I would expect the IP there to be the same as set in the private_network? I've been staring at this for over an hour, did I do something wrong? I have a feeling the IP isn't being set properly or something. I can <code>ping 192.168.6.66</code>.</p>