Load balancer (nginx)

Hi,
How to configure load balancer with application servers using ansible? Thanks in advance