# ansible-lint

> Checks playbooks for practices and behavior that could potentially be improved

Source: https://talira.ai/catalog/ansible-lint-r3bpcyc4
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / linting](https://talira.ai/categories/developer-tools/linting)
- Platforms: linux, macos[^2]
- Licence: GPL-3.0-or-later[^3][^4]
- Pricing: Free and open source[^3]
- Free tier: yes[^3]
- Plugins: yes[^5]
- Backed by: [Red Hat](https://talira.ai/orgs/red-hat.md)
- Creator: Will Thames
- Funding: acquired by IBM (2019)[^6]

ansible-lint is the linter for [Ansible](https://talira.ai/catalog/ansible-cpvqqenm.md) playbooks, roles and collections, maintained in the Ansible project by Red Hat. It checks content against community rules, which you can turn off one by one or by category, applies profiles from `min` to `production` that raise strictness as content matures, and can fix common problems itself with `--fix`, including YAML reformatting. It reports in several formats including SARIF and Code Climate JSON, runs as a GitHub Action, and Ansible Galaxy uses it to score content. Created by Will Thames; distributed as GPL-3.0-or-later because of its GPL dependencies, while its own code is MIT.

## Links

- Website: https://docs.ansible.com/projects/lint/
- GitHub: https://github.com/ansible/ansible-lint
- Docs: https://docs.ansible.com/projects/lint/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/ansible-lint>[^1]

## Problems it solves

- catch mistakes and bad practices in my Ansible playbooks before they run against servers
- enforce the same automation style across every Ansible role our team writes
- fail a pull request when someone's playbook breaks our automation rules
- fix common problems and reformat the YAML in my playbooks automatically
- tighten playbook checks gradually as our automation code matures
- show linting results for our infrastructure automation in GitHub code scanning
- check that an Ansible collection meets the bar before we publish it

## Features

- rules for playbooks, roles and collections
- profiles: min, basic, moderate, safety, shared, production
- auto-fix with `--fix`, including YAML reformatting
- output formats including SARIF, Code Climate JSON, Markdown and pep8
- GitHub Action
- disable rules individually or by category
- custom rules directories

## Limitations

- Doesn't install on Windows: Ansible-lint does not currently support Windows systems[^2]

## Capabilities

- Has a command line tool: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.72 out of 1.
Signals: maintenance 0.81, adoption 0.72, momentum 0.43, community 1.00, backing 0.75, extensibility 0.40.

- last commit 5 days ago
- 32 commits in the last 90 days
- latest release v26.11.0 20 days ago
- 3.9k GitHub stars
- 404 contributors
- backed by Red Hat
- created by Will Thames
- funding: acquired by IBM (2019)
- has a plugin system

## Related

- Works with [Ansible](https://talira.ai/catalog/ansible-cpvqqenm.md)

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://docs.ansible.com/projects/lint/installing/ (checked 19 Nov 2026)
[^3]: https://github.com/ansible/ansible-lint/blob/main/COPYING (checked 19 Nov 2026)
[^4]: https://github.com/ansible/ansible-lint (checked 19 Nov 2026)
[^5]: https://docs.ansible.com/projects/lint/usage/ (checked 19 Nov 2026)
[^6]: https://www.redhat.com/en/about/press-releases/ibm-closes-landmark-acquisition-red-hat-34-billion-defines-open-hybrid-cloud-future (checked 20 Nov 2026)
