mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-11 13:17:07 +00:00
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>
15 lines
315 B
YAML
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
|