Changed constructor order. emails need to be defned before users

This commit is contained in:
Kevin Veen-Birkenbach 2025-08-20 18:54:44 +02:00
parent c27d16322b
commit 3df511aee9
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E

View File

@ -4,6 +4,11 @@
msg: "{{ allowed_applications }}"
when: MODE_DEBUG | bool
- name: Merge system_email definitions
set_fact:
SYSTEM_EMAIL: "{{ DEFAULT_SYSTEM_EMAIL | combine(system_email | default({}, true), recursive=True) }}"
no_log: "{{ MASK_CREDENTIALS_IN_LOGS | bool }}"
- name: Merge variables
block:
- name: Merge users
@ -11,11 +16,6 @@
users: "{{ default_users | combine(users| default({}), recursive=True) }}"
no_log: "{{ MASK_CREDENTIALS_IN_LOGS | bool }}"
- name: Merge system_email definitions
set_fact:
SYSTEM_EMAIL: "{{ DEFAULT_SYSTEM_EMAIL | combine(system_email | default({}, true), recursive=True) }}"
no_log: "{{ MASK_CREDENTIALS_IN_LOGS | bool }}"
- name: Merge application definitions
set_fact:
applications: "{{ defaults_applications | merge_with_defaults(applications | default({}, true)) }}"