Prefer grouping similar Ansible tasks into looping list variables

Record in both the shared Ansible rules (~/.config/ai/rules/ansible.md)
and the repo Conventions that similar tasks should be declared as list
variables, typically in group_vars, and applied by a single task looping
over the list instead of near-identical one-per-item tasks.

Co-Authored-By: Cline <noreply@anthropic.com>
This commit is contained in:
2026-11-12 23:06:14 +01:00
parent 52c3615d26
commit 3f3781437b
2 changed files with 3 additions and 0 deletions

View File

@@ -4,3 +4,4 @@
- Keep tasks idempotent
- Use group_vars and host_vars properly
- Avoid duplication
- Group similar tasks into list variables and apply them with a single looping task