mirror of
https://github.com/fscotto/infra.git
synced 2026-11-26 21:59:50 +00:00
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>
8 lines
213 B
Markdown
8 lines
213 B
Markdown
# Ansible Rules
|
|
|
|
- Prefer modules over shell
|
|
- 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
|