# 使用 Homebrew, Nix, zypper 安装 ansible-cmdb

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ansible-cmdb
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

- zypper (92%):

```sh
sudo zypper install ansible-cmdb
```

  证据: openSUSE Tumbleweed package metadata: ansible-cmdb from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## 软件包事实

- **软件包键:** brew:ansible-cmdb
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ansible-cmdb>
- **版本:** 1.31
- **来源摘要:** Generates static HTML overview page from Ansible facts
- **主页:** <https://github.com/fboender/ansible-cmdb>
- **仓库:** <https://github.com/fboender/ansible-cmdb>
- **上游文档:** <https://ansible-cmdb.readthedocs.io/en/latest>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://github.com/fboender/ansible-cmdb/archive/refs/tags/1.31.tar.gz>
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- ansible-cmdb (cli)
- ansible-cmdb (别名)

## 依赖

- libyaml
- python@3.14

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.31
- 本地数据: OK
- 上游仓库: https://github.com/fboender/ansible-cmdb
- 检测到的最新版本: 1.31 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

Ansible-CMDB is a small companion utility for Ansible users who want static inventory and host-fact reports without running a database-backed CMDB service. It consumes facts gathered by Ansible and renders them as HTML, CSV, SQL, JSON, Markdown, or plain-text output.

### 项目历史

The project is maintained in the fboender/ansible-cmdb repository and its manual page identifies the command as a tool to generate host overviews from Ansible facts. Its documentation describes an implementation centered on parsing fact directories and, optionally, Ansible inventory data, then rendering the result through templates.

The 1.x release line was already established by 2015, when the bundled man page was dated 2015-11-11. GitHub releases show continued 1.x maintenance through v1.31, including packaging, variable parsing, and template fixes.

### 采用历史

Ansible-CMDB became useful in the gap between ad hoc Ansible fact gathering and heavier infrastructure inventory systems. Its adoption pattern is package-nerdy rather than platform-centric: it appears in Homebrew, Nix, SUSE/openSUSE packaging, and PyPI-oriented workflows because it is a single CLI that can be dropped into cron jobs or documentation pipelines.

The project has a long-lived GitHub footprint with thousands of stars and hundreds of forks, but its release cadence is modest compared with core Ansible tools. That matches its role as a stable reporting add-on rather than an automation engine.

### 使用方式

The canonical workflow is to run Ansible setup with `--tree` to write fact files, then run `ansible-cmdb out/ > overview.html`. Passing `-i` lets the tool read inventory files or dynamic inventory scripts so host and group variables appear in the report.

Users choose templates with `-t`, add template parameters with `-p`, and can output split HTML for large inventories. It is commonly used when a team wants a browsable snapshot of hosts and facts without deploying AWX, NetBox, ServiceNow, or a custom database.

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

For package maintainers, Ansible-CMDB is a classic Unix-shaped adjunct: one executable, generated static output, no daemon, and broad packaging across Python and OS repositories. Its value is that it turns Ansible's existing fact cache into artifacts that can be archived, published, diffed, or shipped as build output.

It also illustrates how the Ansible ecosystem produced small single-purpose tools around the core CLI before more integrated platforms became common.

### 时间线

- 2015: Bundled manual page documents `ansible-cmdb` as a fact-to-overview generator.
- 2017: v1.19 release posts describe static HTML host overview generation and multiple templates.
- 2018: v1.26/v1.26.1 releases focus on packaging and template improvements.
- 2021: v1.31 release fixes PyPI license metadata and template issues.

### Related projects

- Ansible provides the fact gathering data consumed by Ansible-CMDB.
- AWX and Red Hat Ansible Automation Platform provide heavier web UI, inventory, and job orchestration workflows.
- NetBox, ServiceNow CMDB, and other inventory systems overlap with the infrastructure documentation use case but are not drop-in static report generators.

### 来源

- <https://ansible-cmdb.readthedocs.io/en/stable/installation/>
- <https://github.com/fboender/ansible-cmdb>
- <https://github.com/fboender/ansible-cmdb/blob/master/README.md>
- <https://github.com/fboender/ansible-cmdb/blob/master/contrib/ansible-cmdb.man.1>
- <https://github.com/fboender/ansible-cmdb/releases>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ansible-cmdb
- **Version Scheme:** 0
- **Revision:** 1
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- Nix - ansible-cmdb: normalized package name match | nixpkgs package indexes: pkgs/by-name/an/ansible-cmdb/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- zypper - ansible-cmdb - 1.31-3.2: normalized package name match | openSUSE Tumbleweed package metadata: ansible-cmdb from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Ansible Configuration Management Database | https://github.com/fboender/ansible-cmdb


## 相关链接

- [Cloud CLI packages](https://www.automicvault.com/zh-hans/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [python@3.14](https://www.automicvault.com/zh-hans/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [ansible-creator](https://www.automicvault.com/zh-hans/pkg/brew/ansible-creator/) - Shares av.db curated category or tags: ansible, cli, cloud-infrastructure, configuration-management.
- [ansible-lint](https://www.automicvault.com/zh-hans/pkg/brew/ansible-lint/) - Shares av.db curated category or tags: ansible, cli, cloud-infrastructure, configuration-management.
- [ansible](https://www.automicvault.com/zh-hans/pkg/brew/ansible/) - Shares av.db curated category or tags: cli, cloud-infrastructure, configuration-management.
- [kubecfg](https://www.automicvault.com/zh-hans/pkg/brew/kubecfg/) - Shares av.db curated category or tags: cli, cloud-infrastructure, configuration-management.
- [talm](https://www.automicvault.com/zh-hans/pkg/brew/talm/) - Shares av.db curated category or tags: cli, cloud-infrastructure, configuration-management.
- [tanka](https://www.automicvault.com/zh-hans/pkg/brew/tanka/) - Shares av.db curated category or tags: cli, cloud-infrastructure, configuration-management.
- [ansible-builder](https://www.automicvault.com/zh-hans/pkg/brew/ansible-builder/) - Shares av.db curated category or tags: ansible, cli, cloud-infrastructure.
- [actions-batch](https://www.automicvault.com/zh-hans/pkg/brew/actions-batch/) - Shares av.db curated category or tags: cli, cloud-infrastructure.

## Combined YAML source

View the package source record on GitHub. [combined/ansible-cmdb.yml](https://github.com/automic-vault/db/blob/main/combined/ansible-cmdb.yml)


## 来源

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