Adds a new option: add_by_hostname to the ec2-pod role that serves as an explicit opt-in option for preserving the current behavior whereby managed ec2 instances are added to the live inventory by their public fqdn. This behavior causes problems when ansible creates sockets for each of these hosts using file names that are too long. Therefore, this PR changes the default behavior to add the instances by their public ip addresses (far fewer characters needed).
Fixes #39
Adds a new option:
add_by_hostname
to theec2-pod
role that serves as an explicit opt-in option for preserving the current behavior whereby managed ec2 instances are added to the live inventory by their public fqdn. This behavior causes problems when ansible creates sockets for each of these hosts using file names that are too long. Therefore, this PR changes the default behavior to add the instances by their public ip addresses (far fewer characters needed).