From: Lorin Hochstein Date: Sun, 15 Feb 2015 22:53:03 +0000 (-0500) Subject: Fix inventory because of Vagrant private ssh keys X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=ed06623d0a9667ad4450ab336e455ab545c1bf71;p=ansiblebook.git Fix inventory because of Vagrant private ssh keys Fix the inventory to account for change in vagrant private ssh keys --- diff --git a/ch04/playbooks/inventory b/ch04/playbooks/inventory index cd5b1d5..33a75be 100644 --- a/ch04/playbooks/inventory +++ b/ch04/playbooks/inventory @@ -1,7 +1,8 @@ [vagrant] -server1 ansible_ssh_host=192.168.4.10 ansible_ssh_user=vagrant -server2 ansible_ssh_host=192.168.4.11 ansible_ssh_user=vagrant -server3 ansible_ssh_host=192.168.4.12 ansible_ssh_user=vagrant +server1 ansible_ssh_host=192.168.4.10 ansible_ssh_user=vagrant ansible_ssh_private_key_file=.vagrant/machines/ubuntu/virtualbox/private_key +server2 ansible_ssh_host=192.168.4.11 ansible_ssh_user=vagrant ansible_ssh_private_key_file=.vagrant/machines/centos/virtualbox/private_key +server3 ansible_ssh_host=192.168.4.12 ansible_ssh_user=vagrant ansible_ssh_private_key_file=.vagrant/machines/precise/virtualbox/private_key + [ubuntu] server1