Skip to content

Instantly share code, notes, and snippets.

@kevmo
Created December 1, 2015 15:17
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 kevmo/f68ebdbaeb6cc4bf6053 to your computer and use it in GitHub Desktop.
Save kevmo/f68ebdbaeb6cc4bf6053 to your computer and use it in GitHub Desktop.
Vagrant.configure(2) do |config|
config.vm.define "webserver" do |webserver|
webserver.vm.box = "ubuntu/trusty64"
webserver.vm.network "private_network", ip: "192.168.0.2"
webserver.vm.hostname = "webserver"
end
config.vm.define "ansible" do |ansible|
ansible.vm.box = "ubuntu/trusty64"
ansible.vm.network "private_network", ip: "192.168.0.254"
ansible.vm.hostname = "ansible"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment