From 880025324a71c199d2471f19fca23876cac64f92 Mon Sep 17 00:00:00 2001 From: Max Klenk Date: Fri, 11 Sep 2020 10:35:50 +0200 Subject: [PATCH] fix redis config if no password is set --- roles/matrix-redis/templates/redis.conf.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/matrix-redis/templates/redis.conf.j2 b/roles/matrix-redis/templates/redis.conf.j2 index 23b079294..343713566 100644 --- a/roles/matrix-redis/templates/redis.conf.j2 +++ b/roles/matrix-redis/templates/redis.conf.j2 @@ -1,2 +1,4 @@ #jinja2: lstrip_blocks: "True" +{% if matrix_redis_connection_password %} requirepass {{ matrix_redis_connection_password }} +{% endif %}