Set up HAProxy loadbalancer with stats interface and prometheus-enabled metrics.
Use it in a playbook as follows:
- hosts: all
become: true
roles:
- SoInteractive.haproxy
Have a look at the defaults/main.yml for role variables that can be overridden.
- test if unix socket is open