Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 ansible-lint

查看 ansible-lint 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install ansible-lint

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install ansible-lint

MacPorts ports tree · sysutils/ansible-lint/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add ansible-lint

Alpine Linux edge package indexes · ansible-lint · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install ansible-lint

Debian stable package indexes · ansible-lint · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install python3-ansible-lint

Fedora Rawhide package metadata · python3-ansible-lint · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#ansible-lint

nixpkgs package indexes · pkgs/by-name/an/ansible-lint/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S ansible-lint

Arch Linux sync databases · ansible-lint · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install ansible-lint

openSUSE Tumbleweed package metadata · ansible-lint · 来源: download.opensuse.org

概览

软件包摘要

Checks ansible playbooks for practices and behaviour

命令和别名

  • ansible-lint

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

  • 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.

安全态势

尚未找到受保护工具覆盖

没有找到 ansible-lint 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 4 个运行时依赖。
  • 构建元数据列出 2 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Unix
.ansible-lint.ansible-lint.yml.ansible-lint.yaml.config/ansible-lint.yml.config/ansible-lint.yaml

可执行文件

已安装的可执行文件

命令类型暴露范围备注
ansible-lintcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本26.6.0
管理器更新时间2026-07-01
本地数据OK
上游not checked
检测到的最新版本未检测到

https://ansible-lint.readthedocs.io/

安装元数据

软件包元数据

软件包键brew:ansible-lint
版本26.6.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/ansible-lint
主页https://ansible-lint.readthedocs.io/
仓库https://github.com/ansible/ansible-lint
上游文档https://docs.ansible.com/projects/lint
许可证MIT AND GPL-3.0-or-later
源码归档https://files.pythonhosted.org/packages/4c/e5/547e64cf118392fb4d02c179eb0cd86b06145bf7c8e18ab49cc6de5e9886/ansible_lint-26.6.0.tar.gz
最后更新2026-07-01T15:27:34Z
Pulseupdated
依赖cryptography, libyaml, python@3.14, rpds-py
构建依赖pkgconf, rust
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameansible-lint
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

ansible-lint 25.6.1+really25.2.1-1

lint tool for Ansible playbooks

https://github.com/ansible-community/ansible-lint

sudo apt install ansible-lint
  • Section: misc
  • Architecture: all
  • 16 依赖
  • normalized package name match
  • 匹配方式:Ansible Lint
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ansible-lint from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

ansible-lint

nix profile install nixpkgs#ansible-lint
  • normalized package name match
  • 匹配方式:Ansible Lint
nixpkgs package indexes · api.github.com · 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 apt95%

ansible-lint 6.17.2-1

lint tool for Ansible playbooks

https://github.com/ansible-community/ansible-lint

sudo apt install ansible-lint
  • Section: universe/misc
  • Architecture: all
  • 17 依赖
  • normalized package name match
  • 匹配方式:Ansible Lint
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ansible-lint from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

ansible-lint 26.4.0-r0

check ansible playbooks

https://github.com/ansible/ansible-lint

sudo apk add ansible-lint
  • License: MIT
  • Architecture: x86_64
  • Source Package: ansible-lint
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ansible Lint
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ansible-lint from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

ansible-lint-pyc 26.4.0-r0

Precompiled Python bytecode for ansible-lint

https://github.com/ansible/ansible-lint

sudo apk add ansible-lint-pyc
  • License: MIT
  • Architecture: x86_64
  • Source Package: ansible-lint
  • 1 依赖
  • normalized package name match
  • 匹配方式:Ansible Lint
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ansible-lint-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

python3-ansible-lint 26.4.0-3.fc45

Best practices checker for Ansible

https://github.com/ansible/ansible-lint

sudo dnf install python3-ansible-lint
  • License: GPL-3.0-only
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: ansible-lint
  • 4 依赖
  • 6 提供
  • normalized package name match
  • 匹配方式:Ansible Lint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: python3-ansible-lint from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

ansible-lint 26.4.0-1

Checks playbooks for practices and behaviour that could potentially be improved.

https://github.com/ansible/ansible-lint

sudo pacman -S ansible-lint
  • License: GPL-3.0-or-later
  • Architecture: any
  • 12 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Ansible Lint
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: ansible-lint from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

ansible-lint 26.4.0-2.1

Best practices checker for Ansible

https://github.com/ansible/ansible-lint

sudo zypper install ansible-lint
  • License: MIT
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: ansible-lint
  • 18 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Ansible Lint
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: ansible-lint from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

ansible-lint

sudo port install ansible-lint
  • normalized package name match
  • 匹配方式:Ansible Lint
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/ansible-lint/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment