Ansible Validator
ListedValidates Ansible playbooks against best practices and schema to catch errors early and improve playbook quality.
Install on your platform
Showing Claude Code. One command installs this skill into any of the agents below.
- 1
Run this in your project
terminal$ npx skills add akin-ozer/cc-devops-skills --skill ansible-validator -a claude-code Uses the open-source
skillsCLI and needs Node.js. Add-gto install it for your user instead of this project.
What we know about this skill
Publisher
akin-ozer
Taken from the source listing. We haven't verified who controls this account.
Install target
Live repository
Not pinned. Installing fetches whatever the repository holds at the time you run the command.
Automated safety checks
This skill failed 2 of 6 checks. A failure is not proof of bad intent; it means something in the code needs a human to look at it before you run it.
No undeclared network calls: failed
Contacts 1 host that is neither well-known infrastructure nor declared in the skill's frontmatter: www.checkov.io.
Every host the skill dials — from its scripts, its config endpoints or the commands it tells the agent to run — is either well-known package and API infrastructure or declared in its own frontmatter. Links in documentation are not counted.
Hosts contacted
www.checkov.ioundeclaredWhat it found
- devops-skills-plugin/skills/ansible-validator/scripts/validate_playbook_security.sh:155contacts www.checkov.io
echo " https://www.checkov.io/5.Policy%20Index/ansible.html" - devops-skills-plugin/skills/ansible-validator/scripts/validate_role_security.sh:150contacts www.checkov.io
echo " https://www.checkov.io/5.Policy%20Index/ansible.html"
No credential access: failed
Touches credential material in 8 places.
Neither the code nor the SKILL.md instructions read SSH keys, cloud credentials, keychains, token stores, browser cookie databases or dotfiles that hold secrets.
What it found (3 of 8)
- devops-skills-plugin/skills/ansible-validator/references/common_errors.md:242SSH private keys or config
ansible-playbook -i inventory playbook.yml --private-key=~/.ssh/id_rsa - devops-skills-plugin/skills/ansible-validator/references/common_errors.md:246SSH private keys or config
server1 ansible_user=ubuntu ansible_ssh_private_key_file=~/.ssh/id_rsa - devops-skills-plugin/skills/ansible-validator/references/common_errors.md:262SSH private keys or config
server1 ansible_ssh_private_key_file=~/.ssh/custom_key
Declares what it does: passed
SKILL.md parses and declares a name and a description.
SKILL.md exists, its frontmatter parses, and it declares a name and a description.
No obfuscated payloads: passed
No encoded or obfuscated payloads.
No base64, hex or compressed blob is decoded and then executed, and no encoded shell commands.
No pipe-to-shell installers: passed
No pipe-to-shell or download-and-run installers.
No `curl … | sh` pattern, in the code or in the instructions, that runs code fetched at run time.
Pinned to a commit: passed
Scanned akin-ozer/cc-devops-skills at 276af751e6.
The exact upstream commit SHA that was scanned is recorded, so the result refers to specific bytes.
- Commit
- 276af751e6
- Scanned
- 55 files, 7,898 lines
About this skill
What it does
The ansible-validator skill validates Ansible playbooks, roles, and collections against best practices and syntax. It identifies potential errors and style issues before deployment, improving playbook reliability and maintainability. This ensures your infrastructure code adheres to defined standards and reduces the risk of unexpected behavior in production environments.
When to use it
- Pre-deployment checks: Run validation as part of a CI/CD pipeline to catch errors early.
- Role development: Ensure newly created or modified Ansible roles meet quality standards.
- Collection creation: Validate custom collections for correctness and adherence to community guidelines.
- Code reviews: Quickly identify potential issues during code review processes.
Key capabilities
- Validates Ansible playbooks, roles, and collections.
- Checks syntax and best practices.
- Identifies potential errors before deployment.
Example prompts
- "Validate this playbook:
/path/to/my/playbook.yml" - "Run ansible-validator on the 'my_role' role."
- "Check my collection for any validation issues."
Tips & gotchas
- Requires Ansible to be installed in the environment where it is used.
- The skill’s output may require interpretation based on your team’s specific standards and error tolerance.