Skip to content

Instantly share code, notes, and snippets.

@ipedrazas
Created June 16, 2013 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ipedrazas/5793310 to your computer and use it in GitHub Desktop.
Save ipedrazas/5793310 to your computer and use it in GitHub Desktop.
Ansible to setup Vagrant
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "precise64"
config.vm.network :forwarded_port, guest: 80, host: 8080
config.vm.network :private_network, ip: "192.168.111.222"
config.vm.provision "shell", inline: "apt-get update"
config.vm.provision :ansible do |ansible|
ansible.playbook = "ansible-playbooks/setup-vagrant.yml"
ansible.inventory_file = "ansible_hosts"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment