# ansible-lint mit Homebrew, apk, apt, MacPorts, Nix, pacman, zypper, dnf installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für ansible-lint in AI-Agent-Workflows.

## Installation

```sh
sudo av install brew:ansible-lint
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install ansible-lint
```

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ansible-lint
```

  Evidenz: MacPorts ports tree: sysutils/ansible-lint/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add ansible-lint
```

  Evidenz: Alpine Linux edge package indexes: ansible-lint from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install ansible-lint
```

  Evidenz: Debian stable package indexes: ansible-lint from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#ansible-lint
```

  Evidenz: nixpkgs package indexes: pkgs/by-name/an/ansible-lint/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S ansible-lint
```

  Evidenz: Arch Linux sync databases: ansible-lint from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install ansible-lint
```

  Evidenz: openSUSE Tumbleweed package metadata: ansible-lint from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

- dnf (92%):

```sh
sudo dnf install python3-ansible-lint
```

  Evidenz: Fedora Rawhide package metadata: python3-ansible-lint from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

## Paketfakten

- **Paketschlüssel:** brew:ansible-lint
- **Paketmanager:** Homebrew
- **Version:** 26.6.0
- **Quellzusammenfassung:** Checks ansible playbooks for practices and behaviour
- **Homepage:** <https://ansible-lint.readthedocs.io/>
- **Zuletzt aktualisiert:** 2026-07-15T15:22:46Z
- **Generiert:** 2026-08-03T19:37:03+00:00

## Executables

- ansible-lint (Alias)

## Installationsverhalten

- Bottle: nicht verfügbar

## Version und Aktualität

- Seite generiert: 2026-08-03
- Manager-Version: 26.6.0
## Projektgeschichte und Nutzung

Ansible-lint is the standard linting and policy-checking tool for Ansible playbooks, roles, and collections. It checks content for practices and behavior that can be improved and is now part of the Ansible developer-tooling workflow.

### Projektgeschichte

The project lives under the ansible GitHub organization and its README describes it as a community-backed project that supports the last two major Ansible versions. Official documentation covers configuration files, profiles, rule behavior, usage, and CI integration.

Ansible-lint has gone through several packaging and versioning eras. The PyPI release history shows older 6.x releases, later 24.x calendar-style releases, and current 26.x releases. Maintainer discussions document the pain around historical versioning and the move toward a clearer release cadence.

### Adoptionsgeschichte

Ansible-lint became the default quality gate for Ansible content because it encodes conventions that are hard to remember during playbook authoring: rule profiles, syntax checks, risky module usage, task style, role/collection layout, and compatibility concerns.

Its adoption broadened when the repository added a GitHub Action workflow example and editor integrations began surfacing lint feedback through the Ansible VS Code extension and the Ansible Language Server. Red Hat documentation and blogs present it as a way to improve automation functionality, reliability, readability, and maintainability.

### Wie es verwendet wird

Users normally run `ansible-lint` from the root of a project or collection. Configuration is loaded from `.ansible-lint`, `.ansible-lint.yml`, `.ansible-lint.yaml`, `.config/ansible-lint.yml`, or `.config/ansible-lint.yaml`, and scalar CLI options override configured values.

In CI, teams commonly use ansible-lint as a pull-request gate or GitHub Action. Locally, it is also part of editor feedback loops through VS Code and LSP clients, often paired with ansible-core, yamllint, and collection dependency installation.

### Warum Paket-Nerds sich dafür interessieren

For package managers, ansible-lint is one of the important Ansible leaf tools: it is not the runtime automation engine, but many repositories treat it as mandatory infrastructure for accepting changes. That makes version pinning and compatibility with ansible-core unusually visible.

It also exposes the tension in Ansible packaging after the split between the Ansible community package, ansible-core, and collections. A linter must understand all of those moving parts while still being installable as one CLI.

### Zeitleiste

- 2020: ansible-lint 5.0 upgrade guidance begins documenting changed installation and dependency expectations.
- 2021: Maintainer discussion calls out versioning pain in the project.
- 2022: Ansible-lint v6.0.0 starts a release line that later grows large enough to motivate calendar-style versioning.
- 2024: PyPI shows 24.x calendar-style ansible-lint releases.
- 2026: GitHub releases and Homebrew package 26.x ansible-lint.

### Related projects

- ansible-core supplies the execution and syntax behavior that ansible-lint must track.
- ansible-dev-tools bundles ansible-lint with other authoring tools.
- Ansible Language Server and the VS Code extension surface ansible-lint diagnostics in editors.
- yamllint is commonly paired with ansible-lint for YAML-level checks.

### Quellen

- <https://docs.ansible.com/projects/lint/configuring/>
- <https://docs.ansible.com/projects/lint/usage/>
- <https://github.com/ansible/ansible-lint>
- <https://github.com/ansible/ansible-lint/discussions/1626>
- <https://pypi.org/project/ansible-lint/>
- <https://www.redhat.com/en/blog/ansible-lint>


## Sicherheitshinweise

Für ansible-lint wurde kein passendes lokales Secret-Handling-Manifest gefunden. Nucleus-Paketmetadaten bleiben hier veröffentlicht, damit künftige Abdeckung eine stabile Paket-URL hat.



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: .ansible-lint, .ansible-lint.yml, .ansible-lint.yaml, .config/ansible-lint.yml, .config/ansible-lint.yaml
## Andere Paketmanager-Einträge

- Debian apt - ansible-lint - 25.6.1+really25.2.1-1: normalized package name match | Debian stable package indexes: ansible-lint from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | lint tool for Ansible playbooks | https://github.com/ansible-community/ansible-lint
- Nix - ansible-lint: normalized package name match | nixpkgs package indexes: pkgs/by-name/an/ansible-lint/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - ansible-lint - 6.17.2-1: normalized package name match | Ubuntu 24.04 LTS package indexes: ansible-lint from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | lint tool for Ansible playbooks | https://github.com/ansible-community/ansible-lint
- apk - ansible-lint - 26.6.0-r0: normalized package name match | Alpine Linux edge package indexes: ansible-lint from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | check ansible playbooks | https://github.com/ansible/ansible-lint
- apk - ansible-lint-pyc - 26.6.0-r0: normalized package name match | Alpine Linux edge package indexes: ansible-lint-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for ansible-lint | https://github.com/ansible/ansible-lint
- dnf - python3-ansible-lint - 26.6.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: python3-ansible-lint from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Best practices checker for Ansible | https://github.com/ansible/ansible-lint
- pacman - ansible-lint - 26.6.0-1: normalized package name match | Arch Linux sync databases: ansible-lint from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Checks playbooks for practices and behaviour that could potentially be improved. | https://github.com/ansible/ansible-lint
- zypper - ansible-lint - 26.6.0-1.2: normalized package name match | openSUSE Tumbleweed package metadata: ansible-lint from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Best practices checker for Ansible | https://github.com/ansible/ansible-lint
- MacPorts - ansible-lint: normalized package name match | MacPorts ports tree: sysutils/ansible-lint/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/ansible-lint.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ansible-lint.yml)


## Quellen

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
