
Ansible Validator
This is a comprehensive Ansible quality gate that runs syntax checks, linting, security scans, and Molecule tests in a single pass. The workflow is deterministic and bulletproof: if Docker isn't available for Molecule or Checkov isn't installed, it marks those stages as blocked and continues with everything else instead of failing early. It's especially useful for catching non-FQCN module usage (like `apt` instead of `ansible.builtin.apt`) and includes dual secret scanning with both Checkov and a dedicated secrets detector. The wrapper scripts handle tool bootstrapping automatically, so you don't need a pre-configured environment. Best for CI pipelines or pre-commit validation where you want exhaustive coverage without manual dependency wrangling.
- skills.sh installs
- 1.6K
- GitHub stars
- 337
- last updated
- Aug 21, 2026
Install
$ npx -y skills add akin-ozer/cc-devops-skills --skill ansible-validator --agent claude-codeInstalls into .claude/skills of the current project.
Files
Ansible Validator
Overview
Comprehensive toolkit for validating, linting, and testing Ansible playbooks, roles, and collections. This skill provides automated workflows for ensuring Ansible code quality, syntax validation, dry-run testing with check mode and molecule, and intelligent documentation lookup for custom modules and collections with version awareness.
Default behavior: When validating any Ansible role with a molecule/ directory, attempt Molecule automatically using bash scripts/test_role.sh <role-path>. If Molecule cannot run due to environment/runtime limits, mark Molecule as BLOCKED, report why, and continue all non-Molecule validation steps.
Trigger Guidance
Use this skill when the request is about validating or debugging existing Ansible code, not generating new code.
Common trigger phrases:
- "validate this playbook"
- "lint this role"
- "why is ansible-lint failing"
- "run check mode safely"
- "test this role with molecule"
- "find security issues in these Ansible files"
- "module not found in this collection"
When to Use This Skill
Apply this skill when encountering any of these scenarios:
Sponsors
Details
- Repository
- github.com/akin-ozer/cc-devops-skills
- Categories
- DevOps & CI/CD, Code Review & Quality, Debugging
- First seen
- Jun 3, 2026
More from akin-ozer/cc-devops-skills
All 31- Terragrunt Generator1.2K
- Ansible Generator907
- K8s Debug887
- Jenkinsfile Generator862
- Dockerfile Validator786
- Dockerfile Generator741
- Bash Script Validator734
- Gitlab Ci Validator725
- K8s Yaml Validator715
- Helm Validator712
- Bash Script Generator710
- Jenkinsfile Validator706
- Terragrunt Validator703
- K8s Yaml Generator694
- Azure Pipelines Generator692
- Github Actions Validator686
- Gitlab Ci Generator686
- Github Actions Generator684
- Terraform Validator681
- Azure Pipelines Validator680
- Terraform Generator680
- Helm Generator674
- Makefile Validator671
- Makefile Generator659