# ansible/ansible-lint

ansible-lint checks playbooks for practices and behavior that could potentially be improved and can fix some of the most common ones for you

Repository: https://github.com/ansible/ansible-lint
Canonical: https://ross.abutalabs.com/products/ansible-lint
Homepage: https://ansible.readthedocs.io/projects/lint/
Language: Python
License: GPL-3.0
License Family: copyleft
Topics: ansible, ansible-lint, pre-commit-hook, hacktoberfest, dot-config, pep-621, ansible-dev-tools
Last push: 2026-08-26T18:29:53+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 97, longevity 100
- inputs: {"age_days": 4767, "days_push": 7, "days_rel": 21, "gap_med": 14, "n_releases_24m": 36}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3901, forks 751 (observed 2026-08-28T04:08:28.610522+00:00)

## What it is
ansible-lint is a command-line linter that checks Ansible playbooks and roles for practices and behavior that could be improved, and can automatically fix some common issues. It integrates with CI pipelines and pre-commit hooks, including an official GitHub Action.

## Use cases
- lint ansible playbooks for best practices
- auto-fix common ansible playbook issues
- run ansible linting in CI on pull requests
- add ansible-lint as a pre-commit hook
- enforce ansible coding standards across a team
- check ansible roles and collections for style violations

## When to choose
- you write or maintain Ansible playbooks, roles, or collections and want consistent quality
- you want automated Ansible checks in GitHub Actions or pre-commit
- you want a linter that can auto-fix some violations

## When to avoid
- you don't use Ansible for configuration management
- you need general YAML linting only without Ansible-specific rules
- you need full infrastructure-as-code policy enforcement beyond Ansible

## Facets
- artifact type: cli-tool
- maturity: active
- function: linter, cli, ci-cd, configuration-management
- domain: developer-tools, infrastructure-as-code
- platform: python, cli, windows
- tags: ansible, playbooks, pre-commit-hook, github-action, static-analysis, iac, devops, automation, linux, macos, docker

## Member repositories
- ansible/ansible-lint (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:28.610522+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:25:10.385061+00:00, confidence not recorded.
  - readme: https://github.com/ansible/ansible-lint (fetched 2026-08-28T04:08:28.610522+00:00, sha 601271fcbda9)
  - registry_pypi: https://pypi.org/pypi/ansible-lint/json (fetched 2026-08-29T09:19:44.987588+00:00, sha fdd6046b32ac)
- Data as of 2026-08-30T08:39:29.467469+00:00.
