# 使用 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/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:ansible-cmdb
- **软件包管理器:** Homebrew
- **版本:** 1.31
- **来源摘要:** Generates static HTML overview page from Ansible facts
- **主页:** <https://github.com/fboender/ansible-cmdb>
- **仓库:** <https://github.com/fboender/ansible-cmdb>
- **最后更新:** 2026-07-10T16:05:17-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ansible-cmdb (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.31
## 项目历史与用法

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

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

- 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.3: normalized package name match | openSUSE Tumbleweed package metadata: ansible-cmdb from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Ansible Configuration Management Database | https://github.com/fboender/ansible-cmdb


## Combined YAML source

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


## 来源

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