Files
computer-playbook/tasks/utils/load_app.yml
T
kevinveenbirkenbach 2d344fb129 refactor(domains): switch to domain() lookup across config and templates
Replace `domains | get_domain(...)` usage with `lookup('domain', ...)` throughout
group_vars, roles, and templates. Fix load_app domain resolution to use the
current application_id.

https://chatgpt.com/share/6985ef1e-11b8-800f-b231-52523055060b
2026-02-06 14:46:29 +01:00

20 lines
537 B
YAML

- name: "Harden load_app_id"
ansible.builtin.set_fact:
_load_app_id: "{{ load_app_id }}"
changed_when: false
- name: "DEBUG | Loading parameters"
ansible.builtin.debug:
msg:
application_id: "{{ application_id | default('undefined') }}"
_load_app_id: "{{ load_app_id }}"
when: MODE_DEBUG | bool
- name: "Loading {{ _load_app_id }}'"
include_role:
name: "{{ _load_app_id }}"
public: false
vars:
application_id: "{{ _load_app_id }}"
domain: "{{ lookup('domain',load_app_id) }}"