mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-12-02 15:39:57 +00:00
Add WEBSERVER_CORE_APPLICATIONS and merge them into CURRENT_PLAY_APPLICATIONS
Refactored constructor logic to always include core webserver applications (web-svc-logout, web-svc-cdn) by using a dict2items → selectattr → items2dict merge pipeline. Conversation reference: https://chatgpt.com/share/692cbd03-19d8-800f-a8a8-f42d73481a0d
This commit is contained in:
@@ -105,3 +105,8 @@ RECAPTCHA_ENABLED: "{{ (CAPTCHA.RECAPTCHA.KEY | default('') | length > 0)
|
|||||||
HCAPTCHA_ENABLED: "{{ (CAPTCHA.HCAPTCHA.KEY | default('') | length > 0)
|
HCAPTCHA_ENABLED: "{{ (CAPTCHA.HCAPTCHA.KEY | default('') | length > 0)
|
||||||
and
|
and
|
||||||
(CAPTCHA.HCAPTCHA.SECRET | default('') | length > 0) }}"
|
(CAPTCHA.HCAPTCHA.SECRET | default('') | length > 0) }}"
|
||||||
|
|
||||||
|
# Applications which are allways required
|
||||||
|
WEBSERVER_CORE_APPLICATIONS:
|
||||||
|
- web-svc-logout
|
||||||
|
- web-svc-cdn
|
||||||
@@ -37,9 +37,15 @@
|
|||||||
- name: Merge current play applications
|
- name: Merge current play applications
|
||||||
set_fact:
|
set_fact:
|
||||||
CURRENT_PLAY_APPLICATIONS: >-
|
CURRENT_PLAY_APPLICATIONS: >-
|
||||||
{{
|
{{
|
||||||
applications |
|
applications
|
||||||
applications_if_group_and_deps(group_names)
|
| applications_if_group_and_deps(group_names)
|
||||||
|
| combine(
|
||||||
|
applications
|
||||||
|
| dict2items
|
||||||
|
| selectattr('key', 'in', WEBSERVER_CORE_APPLICATIONS)
|
||||||
|
| items2dict
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
no_log: "{{ MASK_CREDENTIALS_IN_LOGS | bool }}"
|
no_log: "{{ MASK_CREDENTIALS_IN_LOGS | bool }}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user