diff --git a/playbooks/templates/loadbalancer.cfg.j2 b/playbooks/templates/loadbalancer.cfg.j2 new file mode 100644 index 0000000..dd67fe0 --- /dev/null +++ b/playbooks/templates/loadbalancer.cfg.j2 @@ -0,0 +1,15 @@ +http { + upstream app { + {% for host in ip %} + server {{ host.ip }}; + {% endfor %} + } + + server { + listen 80; + + location / { + proxy_pass http://app; + } + } +} \ No newline at end of file