From a993c153dd7044114eac817949a95f0621ba5a9e Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Wed, 24 Sep 2025 13:51:44 +0200 Subject: [PATCH] fix(docker-container): ensure service_name and context are passed correctly to resource.yml.j2 by switching from lookup() to include with indent filter Ref: https://chatgpt.com/share/68d3db3d-b6b4-800f-be4b-24ac50005552 --- roles/docker-container/templates/base.yml.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/docker-container/templates/base.yml.j2 b/roles/docker-container/templates/base.yml.j2 index 47263b2c..aa9d57bd 100644 --- a/roles/docker-container/templates/base.yml.j2 +++ b/roles/docker-container/templates/base.yml.j2 @@ -7,5 +7,7 @@ {% endif %} logging: driver: journald - {{ lookup('template', 'roles/docker-container/templates/resource.yml.j2') | indent(4) }} +{% filter indent(4) %} + {% include 'roles/docker-container/templates/resource.yml.j2' %} +{% endfilter %} {{ "\n" }} \ No newline at end of file