Created
June 16, 2013 20:30
-
-
Save ipedrazas/5793310 to your computer and use it in GitHub Desktop.
Ansible to setup Vagrant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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