ansible-validator - Validate and troubleshoot Ansible code
Validates, lints, tests, audits, and troubleshoots Ansible playbooks, roles, inventories, modules, and collections.
Tags
Updated: 2026-12-03Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Validate YAML and Ansible syntax
- Lint Ansible code
- Run Ansible check mode
- Test roles with Molecule
- Scan for security issues
- Detect hardcoded secrets
- Check module FQCN usage
- Inspect collections and modules
- Look up version-specific documentation
- Report validation status and blockers
Inputs
- Ansible playbooks
- Ansible roles
- Inventories
- Ansible collections
- YAML configuration files
- Module and collection versions
- Available runtime environment
Outputs
- Validation status report
- Lint findings
- Syntax errors
- Security findings
- Molecule test results
- Documentation-based remediation guidance
- Blocked and skipped stage reasons
- Recommended next actions
Requirements
- Ansible tools
- Python and pip for bootstrapping
- ansible-lint
- yamllint
- Molecule and Docker or Podman for Molecule tests
- Checkov for security scanning
- Bash environment
- Access to referenced documentation when external lookup is needed
