Fix inventory because of Vagrant private ssh keys
authorLorin Hochstein <lorin.hochstein@sendgrid.com>
Sun, 15 Feb 2015 22:53:03 +0000 (17:53 -0500)
committerLorin Hochstein <lorin.hochstein@sendgrid.com>
Sun, 15 Feb 2015 22:53:03 +0000 (17:53 -0500)
Fix the inventory to account for change in vagrant private ssh keys

ch04/playbooks/inventory

index cd5b1d5..33a75be 100644 (file)
@@ -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