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:
@@ -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 }}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user