Skip to content

Validate, lint, and debug Ansible playbooks, roles, and inventories with FQCN and dry-run checks.

CCM score
55 of 100
skills.sh installs
1.9K
GitHub stars
345
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the validation workflow from preflight through syntax checks, linting, check mode, Molecule testing, and final reporting
  • Includes wrapper scripts such as validate_playbook.sh, validate_role.sh, test_role.sh, check_fqcn.sh, and scan_secrets.sh with direct-command fallbacks
  • Enforces a status contract that marks environment or runtime gaps as BLOCKED separately from code FAIL results
  • Designed for reviewing existing Ansible code rather than generating new playbooks or roles

Install

$ npx -y skills add akin-ozer/cc-devops-skills --skill ansible-validator -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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:

Details

Repository
github.com/akin-ozer/cc-devops-skills
Categories
DevOps & Cloud, Code Review & Quality
First seen
Jun 3, 2026

Questions

What does the ansible-validator skill do?

ansible-validator validates, lints, audits, and debugs existing Ansible playbooks, roles, inventories, and tasks. It covers syntax checks, linting, dry-run testing with check mode, Molecule role tests, and FQCN module checks. It works on code you already have rather than generating new Ansible files.

How do I install the ansible-validator skill?

Run npx -y skills add akin-ozer/cc-devops-skills --skill ansible-validator -y in your project to install it. Once installed, ansible-validator lets your agent validate playbooks and roles on request. Its preflight script checks which tools are present before validation runs.

Which tools does ansible-validator need?

ansible-validator needs ansible, ansible-playbook, and ansible-lint for baseline validation, with yamllint recommended. Molecule testing additionally needs molecule and a Docker or Podman runtime. Security scanning uses checkov, which its wrapper can install if missing.

Where does ansible-validator stand in the DevOps & Cloud category?

ansible-validator is listed in the DevOps & Cloud category on Claude Marketplaces. Its category peers include azure-diagnostics, azure-prepare, azure-deploy, azure-validate, and azure-storage. Unlike those Azure skills, ansible-validator targets Ansible code quality, including FQCN usage and Molecule role testing.

More from akin-ozer/cc-devops-skills

All 31

Similar to Ansible Validator

More DevOps & Cloud