Files
computer-playbook/roles/sys-svc-webserver-https/tasks/00_core.yml
T
kevinveenbirkenbachandClaude Opus 5.5 37e1a178a5 fix(roles): give every dependency loop a role-unique loop_var
Seventeen roles looped their dependency includes as dependency_role, and several of them reach each other (svc-bkp-* -> sys-ctl-cln-bkps -> sys-ctl-alm-compose, sys-svc-webserver-https -> sys-svc-cln-domains), so full-4 warned 'The loop variable dependency_role is already in use' three times. Each loop now names its item <role>_dependency. A new lint follows looped include_role targets transitively and refuses an outer loop_var that a reached role loops with again.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-24 11:25:48 +02:00

15 lines
315 B
YAML

---
- name: 📂 Include dependencies
include_role:
name: "{{ sys_svc_webserver_https_dependency }}"
loop:
- sys-svc-webserver-core
- sys-svc-cln-domains
- sys-svc-dns
loop_control:
loop_var: sys_svc_webserver_https_dependency
- meta: flush_handlers
- include_tasks: utils/once/flag.yml