Automic VaultAutomic Vault

brew

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

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

代理安全

代理安全回答

ansible automates hosts and infrastructure from local inventories and credentials.

凭据访问

Reads SSH keys, vault files, inventories, cloud credentials, and environment variables.

远程变更

Can configure remote hosts, cloud resources, and application deployments.

发布/制品风险

Can roll out generated config, binaries, and service changes.

推荐控制

Gate playbook runs, vault decrypts, and inventory changes.

代理使用指南

Allow syntax checks and dry runs; require approval for playbook execution against real targets.

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install ansible

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install ansible

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

Linux

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

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

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

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

Fedora dnf已验证 · 92%
sudo dnf install ansible

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

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

nixpkgs package indexes · ansible · 来源: raw.githubusercontent.com

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

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

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

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

概览

软件包摘要

Automate deployment, configuration, and upgrading

命令和别名

  • ansible
  • ansible-community
  • ansible-config
  • ansible-console
  • ansible-doc
  • ansible-galaxy
  • ansible-inventory
  • ansible-playbook
  • ansible-pull
  • ansible-test
  • ansible-vault

历史

项目历史与用法

Ansible is a radically simple IT automation system for configuration management, application deployment, cloud provisioning, ad hoc task execution, network automation, and orchestration. Its package history matters because the name `ansible` shifted from the original all-in-one project to the modern community package layered on `ansible-core` and collections.

项目历史

Ansible was created as an agentless automation tool whose playbooks describe desired work in YAML and whose default transport avoids installing an agent on managed hosts. The current upstream source for the runtime is the ansible/ansible repository, while official documentation distinguishes the Ansible community package from `ansible-core`.

Red Hat announced an agreement to acquire Ansible in October 2015, framing it as an IT automation and DevOps platform that would complement Red Hat's management portfolio. That acquisition moved Ansible from a startup-backed open source project into Red Hat's broader automation product line while keeping the community project active.

The 2.10 era changed the packaging model. Official release documentation says the Ansible community package uses new versioning starting with 2.10 and then 3.0.0, while `ansible-core` continued the classic 2.x line. The community package includes the language, runtime, and selected collections; `ansible-core` contains the language, runtime, and builtin plugins.

采用历史

Ansible's adoption came from a practical systems-administration sweet spot: SSH-first orchestration, readable YAML playbooks, no managed-node daemon, and a large module ecosystem. It spread through Linux distributions, Python packaging, Homebrew, MacPorts, Nix, and enterprise Red Hat channels because it fits both laptop-driven automation and CI/CD infrastructure workflows.

The split into `ansible-core` plus collections made package selection more nuanced. Many community users still install the `ansible` package because it includes broad batteries: official docs say it offers the functionality that existed in Ansible 2.9, with more than 85 collections containing thousands of modules and plugins. Developers and minimalists often choose `ansible-core` and install only the collections they need.

As Ansible matured, adoption expanded beyond server configuration into network automation, cloud provisioning, security, Windows administration, and platform orchestration. Red Hat Ansible Automation Platform, Automation Hub, AWX, Galaxy, and a large collection ecosystem grew around the core CLI model.

使用方式

The Homebrew `ansible` formula installs the user-facing suite: `ansible`, `ansible-playbook`, `ansible-galaxy`, `ansible-doc`, `ansible-inventory`, `ansible-vault`, `ansible-config`, `ansible-console`, `ansible-pull`, and testing/community helpers. The everyday loop is inventory plus playbooks, with ad hoc commands for quick tasks and Galaxy for roles and collections.

Configuration is resolved from `$ANSIBLE_CONFIG`, `ansible.cfg` in the current directory, `~/.ansible.cfg`, then `/etc/ansible/ansible.cfg`; the first file found wins. Galaxy credentials can be provided through command-line API-key options or through the configured token path, whose default resolves from `ANSIBLE_HOME` to `~/.ansible/galaxy_token`.

Package users care about the distinction between `ansible --version` reporting an ansible-core version and the installed Python package named `ansible` representing the broader community package. That distinction explains why formula pinning, package-manager naming, and docs version matching can feel surprisingly non-obvious.

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

Ansible is one of the canonical infrastructure CLIs in package-manager culture: big enough to have versioned formulae, distro backports, Python package splits, and plugin/collection dependency concerns, but still shaped like command-line tools that can be scripted and vendored.

The package is also a case study in ecosystem packaging after modularization. `ansible-core` is the runtime center; `ansible` is the batteries-included community package; collections carry much of the domain-specific surface area; and tools like ansible-lint, ansible-creator, and ansible-language-server orbit the authoring workflow.

For users, the important packaging question is not just latest version but content set: does the install include the collections your playbooks expect, what Python versions are supported on control and target nodes, and which ansible-core line is underneath?

时间线

  • 2013: PyPI release history shows Ansible 1.0.0 published in February 2013.
  • 2015: Red Hat announces it will acquire Ansible.
  • 2019: Ansible 2.9 is the last pre-collections-style all-in-one community release line.
  • 2020: Ansible 2.10 introduces the community package model alongside ansible-base/ansible-core.
  • 2021: Ansible 3.0.0 continues the community-package line based on ansible-base 2.10.x.
  • 2026: Official docs list Ansible 13.x as current latest and Ansible 14.0.0 as in development.

Related projects

  • ansible-core is the runtime and language core that the `ansible` community package depends on.
  • Ansible Galaxy and Automation Hub distribute roles and collections used by ansible-galaxy.
  • AWX and Red Hat Ansible Automation Platform provide web UI, RBAC, scheduling, inventory, and enterprise automation around the CLI model.
  • ansible-lint, ansible-creator, ansible-navigator, molecule, and Ansible Language Server are common companion tools for authoring and validating content.

安全态势

尚未找到受保护工具覆盖

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

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 7 个运行时依赖。
  • 构建元数据列出 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_CONFIG./ansible.cfg~/.ansible.cfg/etc/ansible/ansible.cfg

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
~/.ansible/galaxy_token

可执行文件

已安装的可执行文件

命令类型暴露范围备注
ansiblecli全局可执行文件
ansible-communitycli全局可执行文件
ansible-configcli全局可执行文件
ansible-consolecli全局可执行文件
ansible-doccli全局可执行文件
ansible-galaxycli全局可执行文件
ansible-inventorycli全局可执行文件
ansible-playbookcli全局可执行文件
ansible-pullcli全局可执行文件
ansible-testcli全局可执行文件
ansible-vaultcli全局可执行文件

新鲜度

版本和新鲜度

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

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

https://www.ansible.com/

安装元数据

软件包元数据

软件包键brew:ansible
版本14.1.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/ansible
主页https://www.ansible.com/
仓库https://github.com/ansible/ansible
上游文档https://docs.ansible.com/projects/ansible/latest/index.html
许可证GPL-3.0-or-later
源码归档https://files.pythonhosted.org/packages/fe/97/3aeeb9d199fd0f931452adebcf5336c01c739b1de2d4bada0744ff5d18e1/ansible-14.1.0.tar.gz
最后更新2026-07-02T19:52:46Z
Pulseupdated
依赖certifi, cryptography, libsodium, libssh, libyaml, python@3.14, tree
构建依赖pkgconf, rust
macOS 提供的库krb5, libxml2, libxslt, openldap
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameansible
Aliases
  • ansible@14
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

ansible 12.0.0+dfsg-0+deb13u1

Configuration management, deployment, and task execution system

https://github.com/ansible-community/ansible-build-data/

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

ansible

nix profile install nixpkgs#ansible
  • normalized package name match
  • 匹配方式:Ansible
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: ansible from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

ansible 9.2.0+dfsg-0ubuntu5

Configuration management, deployment, and task execution system

https://www.ansible.com

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

ansible 14.0.0-r0

core components for Ansible

https://ansible.com/

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

ansible-pyc 14.0.0-r0

Precompiled Python bytecode for ansible

https://ansible.com/

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

ansible 13.7.0-2.fc45

Curated set of Ansible collections included in addition to ansible-core

https://ansible.com

sudo dnf install ansible
  • License: GPL-3.0-or-later AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT AND MPL-2.0 AND PSF-2.0
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: ansible
  • 3 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Ansible
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ansible from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

ansible 14.0.0-1

Official assortment of Ansible collections

https://pypi.org/project/ansible/

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

ansible 14.0.0-1.1

Radically simple IT automation

https://ansible.com/

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

ansible

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

ansible-test 2.21.0-2.1

Tool for testing ansible plugin and module code

https://ansible.com/

sudo zypper install ansible-test
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: ansible-core
  • 5 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Ansible Test
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: ansible-test from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

来源线索

由仓库数据生成

此页面由 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 agent safety answer
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment