I am trying to update the haproxy.cfg with a new server entry and then add the required pool info for that new server.
Currently I am attempting to use the lineinfile module to do this, it works but I want to make sure I ‘completely’ understand why I didn’t use the HAProxy module directly.
My understand of the HAProxy module are that a server entry already needs to exist in the haproxy.cfg before you can modify pool entries. Is this correct? Or can the HAProxy module create new servers in the haproxy.cfg?
Thanks
Zach