mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 19:01:54 +00:00
Ansible warns that the name is already in use and carries on. Carrying on is the problem: inside the loop the original value is gone, so every lookup, template and nested include reading that name sees the loop item instead, and the task still reports success. The damage lands in a log nobody greps. The lint collects every key declared in group_vars and in each role's vars or defaults, then reports any loop_var matching one. A denylist of known-bad names would have found application_id and missed domain, which is the same class in four more places. All seven existing sites are marked, each with the reason read at the source rather than inferred. The three application_id loops pass the role id as the item, and the include_vars that follows loads that role's own application_id with the same value, so both meanings coincide by construction. The four domain loops hand the vhost to sys-stk-front-proxy, whose tasks read front_proxy_domain from exactly that name, so the shadowing is the interface. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
27 lines
909 B
YAML
27 lines
909 B
YAML
---
|
|
- name: "📂 Include role sys-stk-front-proxy for {{ application_id }}"
|
|
include_role:
|
|
name: sys-stk-front-proxy
|
|
loop: "{{ JOOMLA_DOMAINS }}"
|
|
loop_control:
|
|
loop_var: domain # nocheck: loop-var-shadow sys-stk-front-proxy takes the vhost through this name, see its tasks/main.yml front_proxy_domain
|
|
vars:
|
|
http_port: "{{ lookup('config', application_id, 'services.joomla.ports.local.http') }}"
|
|
webserver_client_max_body_size: "{{ JOOMLA_POST_MAX_SIZE }}"
|
|
|
|
- name: "🧩 load docker and db for {{ application_id }}"
|
|
include_role:
|
|
name: sys-stk-backend
|
|
vars:
|
|
compose_handlers_flush: false
|
|
|
|
- name: 📂 Include PHP Config tasks
|
|
include_tasks: 01_config.yml
|
|
|
|
- name: 🚿 flush docker service
|
|
meta: flush_handlers
|
|
|
|
- name: "👔 Joomla manager-side operations (install, assert, reset admin, OIDC plugin)"
|
|
include_tasks: 02_manager_ops.yml
|
|
when: IS_STACK_HOST | bool
|