From d3d6f8994912906a011498fd251dbb4750814f0e Mon Sep 17 00:00:00 2001 From: transcaffeine Date: Sat, 2 Nov 2024 10:48:05 +0100 Subject: [PATCH] fix(authelia): correctly template session.redis config section, fix container restarts recreating the container --- roles/authelia/handlers/main.yml | 4 +++- roles/authelia/vars/main.yml | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/roles/authelia/handlers/main.yml b/roles/authelia/handlers/main.yml index e30beca..7acfa4d 100644 --- a/roles/authelia/handlers/main.yml +++ b/roles/authelia/handlers/main.yml @@ -4,5 +4,7 @@ docker_container: name: "{{ authelia_container_name }}" state: started - restart: yes + restart: true + comparisons: + '*': ignore listen: restart-authelia diff --git a/roles/authelia/vars/main.yml b/roles/authelia/vars/main.yml index 459ce1c..b5791de 100644 --- a/roles/authelia/vars/main.yml +++ b/roles/authelia/vars/main.yml @@ -170,7 +170,12 @@ authelia_config_access_control: default_policy: "{{ authelia_config_access_control_default_policy }}" networks: "{{ authelia_config_access_control_networks }}" rules: "{{ authelia_config_access_control_rules }}" -authelia_config_session: +authelia_config_session: >-2 + {{ authelia_config_session_base + | combine(({'redis': authelia_config_session_redis} + if authelia_config_session_redis_host else {}), recursive=true) + }} +authelia_config_session_base: name: "{{ authelia_config_session_name }}" domain: "{{ authelia_config_session_domain }}" same_site: "{{ authelia_config_session_same_site }}"