Updated default ini attributes to work with private IP addresses
diff --git a/sample-ec2/ec2.ini b/sample-ec2/ec2.ini index 36b3921..e60abf9 100644 --- a/sample-ec2/ec2.ini +++ b/sample-ec2/ec2.ini
@@ -27,7 +27,8 @@ # address, and should set this to 'private_dns_name'. The key of an EC2 tag # may optionally be used; however the boto instance variables hold precedence # in the event of a collision. -destination_variable = public_dns_name +# destination_variable = public_dns_name +destination_variable = private_dns_name # This allows you to override the inventory_name with an ec2 variable, instead # of using the destination_variable above. Addressing (aka ansible_ssh_host) @@ -42,8 +43,8 @@ # the boto instance variables hold precedence in the event of a collision. # WARNING: - instances that are in the private vpc, _without_ public ip address # will not be listed in the inventory until You set: -# vpc_destination_variable = private_ip_address -vpc_destination_variable = ip_address +vpc_destination_variable = private_ip_address +# vpc_destination_variable = ip_address # The following two settings allow flexible ansible host naming based on a # python format string and a comma-separated list of ec2 tags. Note that: