Skip to content
FunCoding

aap-lint

ansible-lint playbook and role validation — syntax checking, best practice enforcement, project-wide analysis, rule filtering. Use when validating Ansible playbooks, checking code quality, or enforcing automation best practices before deployment.

Star
740
License
Apache-2.0
Last commit
Dec 2, 2026

workspace/skills/aap-lint/SKILL.md

View on GitHub

Ansible Lint Operations

MCP Server

  • Repository: sibilleb/AAP-Enterprise-MCP-Server
  • Transport: stdio (Python via uv run ansible-lint.py)
  • Install: git clone + uv sync (or pip install -e .)
  • Requires: ansible-lint installed

Available Tools (9)

ToolWhat It Does
lint_playbookLint playbook content with configurable profiles and output formats
lint_fileLint a specific Ansible file at a given path
lint_roleComprehensive linting of an Ansible role directory
list_rulesDisplay available ansible-lint rules with optional tag filtering
list_tagsShow all tags for categorizing lint rules
validate_syntaxQuick syntax validation using syntax-specific rules
check_best_practicesEvaluate content against best practices with severity categorization
analyze_projectComprehensive report on an entire Ansible project structure
get_ansible_lint_versionReturn installed ansible-lint version

Key Concepts

ConceptWhat It Means
ProfileLint strictness level (min, basic, moderate, safety, shared, production)
RuleIndividual lint check (e.g., yaml[truthy], no-changed-when, fqcn)
TagRule category for filtering (e.g., command-shell, formatting, idiom)
FQCNFully Qualified Collection Name — required in production profiles

Workflow: Pre-Deployment Playbook Validation

  1. Syntax check: validate_syntax — catch YAML and Ansible syntax errors
  2. Best practices: check_best_practices — evaluate against standards
  3. Full lint: lint_playbook with production profile — comprehensive check
  4. Review rules: list_rules — understand which rules triggered violations
  5. Report: Pass/fail with specific violations and remediation guidance

Workflow: Project-Wide Quality Audit

  1. Analyze project: analyze_project — scan entire Ansible project structure
  2. Review findings: Group violations by file, rule, and severity
  3. Check roles: lint_role for each role directory
  4. Report: Project quality scorecard with violation counts and trends

Integration with Other Skills

SkillHow They Work Together
aap-automationValidate playbooks before running them through AAP job templates
aap-edaLint rulebook playbook actions before EDA activation
github-opsCI/CD lint checks on PR playbook changes
gait-session-trackingAudit trail for lint results and quality gate decisions

Important Rules

  • Lint before deploy — always validate playbooks before AAP job execution
  • Profile selection — use production profile for production deployments, basic for development
  • No credentials in playbooks — lint catches hardcoded secrets; use AAP credential management instead

Failure Behavior

  • On a tool error (timeout, unreachable host, malformed response), report the failure and its error message directly to the user rather than fabricating or guessing at results.
  • For a confirmed read-only call, check connectivity and retry once if appropriate. For any call that changes state or sends a message, a timeout does not prove the action failed: inspect current state or delivery status before retrying, preserve the required approval/change gates, and do not repeat an action whose outcome is unknown.

Similar Skills

rea-analysis-optimization

MOmorluto/rea486k8,943 new stars in the last 7 days

Featured

diagnosing-bugs

Diagnose hard bugs and performance regressions by building a feedback loop with tests or scripts.

MAmattpocock/skills337k4,978 new stars in the last 7 days

setup-ts-deep-modules

MAmattpocock/skills337k4,978 new stars in the last 7 days

code-review

MAmattpocock/skills337k4,978 new stars in the last 7 days

tdd

MAmattpocock/skills337k4,978 new stars in the last 7 days

retro

MAmattpocock/skills337k4,978 new stars in the last 7 days