ansible-rabbitmq
ansible-rabbitmq copied to clipboard
Properly detect the master node when running on AWS EC2
When running on Amazon EC2 instances, the nodes use the public DNS name. ansible_fqdn
contains the internal EC2 name. As a result no master node is found, and creating the cluster fails.
This PR add ec2_public_dns_name
(if present) to find the master node.
:warning: ~Note that the fix of PR #22 is included and extended upon~