I have a setup where I have N named elasticsearch clusters.
Each cluster has a group in the Ansible configuration.
Then I have an haproxy role.
The haproxy needs to discovery every group, and whether it’s an ES cluster and the group variables for that cluster.
However, ansible doesn’t really have group metadata. the group metadata is applied to the hosts.
Ideally I would be able to loop through the groups, look at the ‘type’, and then add them to haproxy pools, one pool for each cluster.
Is there a workaround for this?
Kevin