diff --git a/roles/traefik/templates/dynamic-hosts.yml.j2 b/roles/traefik/templates/dynamic-hosts.yml.j2 index eda70ee..9157930 100644 --- a/roles/traefik/templates/dynamic-hosts.yml.j2 +++ b/roles/traefik/templates/dynamic-hosts.yml.j2 @@ -14,7 +14,7 @@ http: retailor-web-svc: loadBalancer: servers: -{% for web_ip in env_vars.WEB_IPS %} +{% for web_ip in env_vars.WEB_IPS | from_json %} - url: "http://{{ web_ip }}:80" {% endfor %}