CheckOps
ansible-lint
ansible-lint is a GPL-3.0 linter from the Ansible project that checks playbooks, roles and collections for practices and behaviour that could be improved, with profiles and auto-fix.
Latest public signals
Not refreshed yet. Refresh reads the public site and, when the entry has a GitHub repository, the latest release.
Introduction
ansible-lint checks Ansible playbooks, roles and collections for practices and behaviour that could potentially be improved, and can fix some issues automatically, according to its GitHub description.
Rules cover syntax, deprecated modules, missing names on tasks, risky file permissions, command usage where a module exists, YAML formatting and more. Profiles, from min to production, let teams adopt rules progressively. A --fix mode rewrites some problems, and SARIF output feeds code scanning.
In the quality loop it is the fast static gate before Molecule integration tests.
The source code is at ansible/ansible-lint on GitHub under the GPL-3.0 licence, with about 3,900 stars; the most recent commit was on 4 November 2026.
Features
- Rule set: Dozens of rules for syntax, style and risky patterns.
- Profiles: Progressive strictness levels.
- Auto-fix: Rewrite some findings automatically.
- SARIF output: For code scanning integrations.
- Config file: Skip or warn on chosen rules.
- Editor support: Used by the Ansible VS Code extension.
Pros
- Official project: Maintained by the Ansible community.
- Free to use: Open source under the GPL-3.0 licence, so the core tool costs nothing to use.
- Actively maintained: The repository had commits as recent as 4 November 2026.
- Community: About 3,900 GitHub stars.
Cons
- Opinionated: Some rules need tuning for legacy code.
- Version coupling: Results can change with Ansible versions.
- Static only: Does not run playbooks.
Usage and Links (Example)
pip install ansible-lint
ansible-lint --profile production
ansible-lint --fix
Resources:
Pricing
ansible-lint is free and open source under the GPL-3.0 licence.
Recommended for?
- Ansible teams enforcing consistent, safe playbooks.
- Collection maintainers preparing content for release.
Conclusion
ansible-lint is the default static check for Ansible content.
Adopt a profile gradually and add Molecule for behavioural tests.
On CheckOps, ansible-lint is filed under the Release & CI gates stage. Related tools listed here include Molecule, Terratest, Test Kitchen, Molecule, Goss and Chef InSpec. Which one fits best depends mostly on your stack, your team’s size and skills, and whether you prefer to run tools yourself or pay for a managed service. This page reflects the official website, documentation and repository as they stood on 11 November 2026.
Alternatives
Other tools on CheckOps that cover similar ground. Open a page, or compare one with ansible-lint side by side.
MMoleculeMolecule is an MIT Ansible-native testing framework for roles, playbooks and collections, creating test instances, converging them and running verification and idempotence checks.Compare with ansible-lint
TTerratestTerratest is an Apache-2.0 Go library from Gruntwork for writing automated tests that deploy real Terraform, Packer, Docker and Kubernetes infrastructure, validate it and tear it down.Compare with ansible-lint
TTest KitchenTest Kitchen is an Apache-2.0 integration testing harness that converges infrastructure code on isolated platforms such as Docker, Vagrant and cloud VMs, then runs verifiers like InSpec.Compare with ansible-lint
GGossGoss is an Apache-2.0 YAML-based tool for quick server and container validation, checking packages, files, ports, services and HTTP endpoints, with dgoss for Docker images.Compare with ansible-lint
CChef InSpecChef InSpec is an auditing and testing framework with a Ruby-based DSL for checking that servers, containers and cloud resources meet compliance and security requirements.Compare with ansible-lint
RRuffRuff is an MIT, Rust-based Python linter and formatter from Astral that is 10-100x faster than Flake8 and Black, with over 900 built-in rules and auto-fix.Compare with ansible-lint