ansible-automation

Installation
SKILL.md

Ansible Automation

Build repeatable automation that is safe to rerun and clear about its target scope.

Workflow

  1. Inspect ansible.cfg, dependency manifests, inventories, variable directories, playbooks, roles, CI, and repository conventions before editing.
  2. Confirm the intended hosts, environment, connection method, privilege escalation, supported Ansible version, and collection versions.
  3. Prefer built-in module behavior over command or shell, use fully qualified collection names when ambiguity is possible, and keep roles cohesive.
  4. Model desired state idempotently. Give tasks descriptive names, use handlers for service changes, and mark changed or failed behavior explicitly when modules cannot infer it.
  5. Keep defaults overridable, required inputs validated, and variable ownership clear. Account for Ansible variable precedence instead of relying on accidental overrides.
  6. Run syntax checks and the project's lint and tests. Use check and diff modes where supported, but do not treat them as proof when modules lack complete support.
  7. Test idempotency and important failure paths in an isolated environment with the repository's existing Molecule or integration workflow.
  8. For rollout, preview the exact inventory and host limit, start with a canary or small serial batch, verify handlers and health, then expand only after approval.

Guardrails

Installs
3
First Seen
Aug 31, 2026