play for installing traefik on lb servers

This commit is contained in:
2026-08-05 20:50:58 +02:00
parent ecdf64ffac
commit c89e8c565a
10 changed files with 237 additions and 2 deletions
@@ -0,0 +1,20 @@
## Managed by Ansible — do not edit by hand.
## Source: traefik_web_private_ips (group_vars/lb.yml)
http:
routers:
retailor-web:
rule: "Host(`app.{{ env_vars.DOMAIN }}`)"
service: retailor-web-svc
entryPoints:
- websecure
tls:
certResolver: letsencrypt
services:
retailor-web-svc:
loadBalancer:
servers:
{% for web_ip in env_vars.WEB_IPS %}
- url: "http://{{ web_ip }}:80"
{% endfor %}