ansible-validator

Community

Validate and lint Ansible code efficiently.

Authorakin-ozer
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Comprehensive toolkit for validating, linting, and testing Ansible code (playbooks, roles, and collections). It streamlines syntax checks, enforces best practices, and coordinates security validations to reduce deployment risk and debugging time.

Core Features & Use Cases

  • YAML/Ansible syntax validation with yamllint and ansible-playbook --syntax-check to catch structural issues early.
  • Linting and quality checks with ansible-lint, plus automated security validation using Checkov.
  • Molecule-based testing support for roles (automatic execution when a molecule/ directory is present) to verify idempotency and cross-platform compatibility.

Quick Start

Validate a single playbook: bash scripts/validate_playbook.sh path/to/playbook.yml. Validate a role: bash scripts/validate_role.sh roles/my_role. Detect non-FQCN usage: bash scripts/check_fqcn.sh path/to/playbook-or-role.

Dependency Matrix

Required Modules

PyYAML

Components

scriptsreferencesassets

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: ansible-validator
Download link: https://github.com/akin-ozer/cc-devops-skills/archive/main.zip#ansible-validator

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.