From: Lorin Hochstein Date: Sun, 11 Jan 2015 02:36:17 +0000 (-0500) Subject: vagrant setup X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=deb8971c84bd24bbf92325614473c41514bcbebe;p=ansiblebook.git vagrant setup --- diff --git a/ch04/Vagrantfile b/ch04/Vagrantfile index a67f1b3..c6934bd 100644 --- a/ch04/Vagrantfile +++ b/ch04/Vagrantfile @@ -24,7 +24,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| # Create a private network, which allows host-only access to the machine # using a specific IP. - # config.vm.network "private_network", ip: "192.168.33.10" + config.vm.network "private_network", ip: "192.168.4.10" # Create a public network, which generally matched to bridged network. # Bridged networks make the machine appear as another physical device on diff --git a/ch04/ansible.cfg b/ch04/ansible.cfg new file mode 100644 index 0000000..2648141 --- /dev/null +++ b/ch04/ansible.cfg @@ -0,0 +1,3 @@ +[defaults] +hostfile = inventory +private_key_file = /Users/lorinhochstein/.vagrant.d/insecure_private_key diff --git a/ch04/inventory b/ch04/inventory new file mode 100644 index 0000000..f30eb9d --- /dev/null +++ b/ch04/inventory @@ -0,0 +1 @@ +vagrant ansible_ssh_host=192.168.4.10 ansible_ssh_user=vagrant