Skip to content

Instantly share code, notes, and snippets.

@psykidellic
Created September 12, 2013 18:54
Show Gist options
  • Select an option

  • Save psykidellic/6542222 to your computer and use it in GitHub Desktop.

Select an option

Save psykidellic/6542222 to your computer and use it in GitHub Desktop.
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'precise64'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
[default] Configuring and enabling network interfaces...
[default] Mounting shared folders...
[default] -- /vagrant
[default] Running provisioner: ansible...
PLAY [example] ****************************************************************
GATHERING FACTS ***************************************************************
fatal: [10.0.2.15] => could not create temporary directory: SSH exited with return code 255
PLAY RECAP ********************************************************************
to retry, use: --limit @/Users/riteshn/provision.retry
10.0.2.15 : 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.
>>>
(relevant Vagrantfile)
config.vm.network :private_network, ip: "10.0.2.15"
config.vm.provision "ansible" do |ansible|
ansible.playbook = "provision.yml"
ansible.inventory_file = "hosts"
end
(relevant HOSTS)
[example]
10.0.2.15
(relevant provision.yml)
---
- hosts: example
user: vagrant
sudo: True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment