diff --git a/group_vars/all/00_general.yml b/group_vars/all/00_general.yml index f945353c..1e5be3e9 100644 --- a/group_vars/all/00_general.yml +++ b/group_vars/all/00_general.yml @@ -105,3 +105,8 @@ RECAPTCHA_ENABLED: "{{ (CAPTCHA.RECAPTCHA.KEY | default('') | length > 0) HCAPTCHA_ENABLED: "{{ (CAPTCHA.HCAPTCHA.KEY | default('') | length > 0) and (CAPTCHA.HCAPTCHA.SECRET | default('') | length > 0) }}" + +# Applications which are allways required +WEBSERVER_CORE_APPLICATIONS: + - web-svc-logout + - web-svc-cdn \ No newline at end of file diff --git a/tasks/stages/01_constructor.yml b/tasks/stages/01_constructor.yml index 1a82d8d9..7349ec1e 100644 --- a/tasks/stages/01_constructor.yml +++ b/tasks/stages/01_constructor.yml @@ -37,9 +37,15 @@ - name: Merge current play applications set_fact: CURRENT_PLAY_APPLICATIONS: >- - {{ - applications | - applications_if_group_and_deps(group_names) + {{ + applications + | applications_if_group_and_deps(group_names) + | combine( + applications + | dict2items + | selectattr('key', 'in', WEBSERVER_CORE_APPLICATIONS) + | items2dict + ) }} no_log: "{{ MASK_CREDENTIALS_IN_LOGS | bool }}"