macOS
brew install ansible-lintlocal Homebrew formula metadata
sudo port install ansible-lintMacPorts ports tree · sysutils/ansible-lint/Portfile · 来源: api.github.com
安装
brew install ansible-lintlocal Homebrew formula metadata
sudo port install ansible-lintMacPorts ports tree · sysutils/ansible-lint/Portfile · 来源: api.github.com
sudo apk add ansible-lintAlpine Linux edge package indexes · ansible-lint · 来源: dl-cdn.alpinelinux.org
sudo apt install ansible-lintDebian stable package indexes · ansible-lint · 来源: deb.debian.org
sudo dnf install python3-ansible-lintFedora Rawhide package metadata · python3-ansible-lint · 来源: dl.fedoraproject.org
nix profile install nixpkgs#ansible-lintnixpkgs package indexes · pkgs/by-name/an/ansible-lint/package.nix · 来源: api.github.com
sudo pacman -S ansible-lintArch Linux sync databases · ansible-lint · 来源: geo.mirror.pkgbuild.com
sudo zypper install ansible-lintopenSUSE Tumbleweed package metadata · ansible-lint · 来源: download.opensuse.org
概览
Checks ansible playbooks for practices and behaviour
历史
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.
安全态势
没有找到 ansible-lint 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
.ansible-lint.ansible-lint.yml.ansible-lint.yaml.config/ansible-lint.yml.config/ansible-lint.yaml可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
ansible-lint | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
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 |
| Pulse | updated |
| 依赖 | 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 Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | ansible-lint |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-lintansible-lint
nix profile install nixpkgs#ansible-lintansible-lint 6.17.2-1
lint tool for Ansible playbooks
https://github.com/ansible-community/ansible-lint
sudo apt install ansible-lintansible-lint 26.4.0-r0
check ansible playbooks
https://github.com/ansible/ansible-lint
sudo apk add ansible-lintansible-lint-pyc 26.4.0-r0
Precompiled Python bytecode for ansible-lint
https://github.com/ansible/ansible-lint
sudo apk add ansible-lint-pycpython3-ansible-lint 26.4.0-3.fc45
Best practices checker for Ansible
https://github.com/ansible/ansible-lint
sudo dnf install python3-ansible-lintansible-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-lintansible-lint 26.4.0-2.1
Best practices checker for Ansible
https://github.com/ansible/ansible-lint
sudo zypper install ansible-lintansible-lint
sudo port install ansible-lint来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.