mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-08 03:38:23 +00:00
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
20 lines
537 B
YAML
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) }}"
|