fix haproxy role selection
handle haproxy.cfg template