Created
December 4, 2015 14:14
-
-
Save kevmo/02d65bc143ad3bfac31c to your computer and use it in GitHub Desktop.
Using an ansible master machine
This file contains hidden or 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
Vagrant.configure(2) do |config| | |
config.vm.define "webserver" do |webserver| | |
webserver.vm.box = "bento/centos-7.1" | |
webserver.vm.network "private_network", ip: "192.168.0.2" | |
webserver.vm.hostname = "webserver" | |
end | |
config.vm.define "ansible" do |ansible| | |
webserver.vm.box = "bento/centos-7.1" | |
webserver.vm.network "private_network", ip: "192.168.0.254" | |
webserver.vm.hostname = "ansible" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment