# Install ansible with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Automate deployment, configuration, and upgrading. Version 14.1.0 via Homebrew; verified 2026-07-02.

## Install

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

## Agent safety answer

ansible automates hosts and infrastructure from local inventories and credentials.

- **Credential access:** Reads SSH keys, vault files, inventories, cloud credentials, and environment variables.
- **Remote mutation:** Can configure remote hosts, cloud resources, and application deployments.
- **Publish/artifact risk:** Can roll out generated config, binaries, and service changes.
- **Recommended control:** Gate playbook runs, vault decrypts, and inventory changes.
- **Agent-use guidance:** Allow syntax checks and dry runs; require approval for playbook execution against real targets.

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install ansible
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ansible
```

  Evidence: MacPorts ports tree: sysutils/ansible/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add ansible
```

  Evidence: Alpine Linux edge package indexes: ansible from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install ansible
```

  Evidence: Debian stable package indexes: ansible from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install ansible
```

  Evidence: Fedora Rawhide package metadata: ansible from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

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

  Evidence: nixpkgs package indexes: ansible from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S ansible
```

  Evidence: Arch Linux sync databases: ansible from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install ansible
```

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

## Package facts

- **Package key:** brew:ansible
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/ansible>
- **Version:** 14.1.0
- **Source summary:** Automate deployment, configuration, and upgrading
- **Homepage:** <https://www.ansible.com/>
- **Repository:** <https://github.com/ansible/ansible>
- **Upstream docs:** <https://docs.ansible.com/projects/ansible/latest/index.html>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://files.pythonhosted.org/packages/fe/97/3aeeb9d199fd0f931452adebcf5336c01c739b1de2d4bada0744ff5d18e1/ansible-14.1.0.tar.gz>
- **Last updated:** 2026-07-02T19:52:46Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- ansible (cli)
- ansible-community (cli)
- ansible-config (cli)
- ansible-console (cli)
- ansible-doc (cli)
- ansible-galaxy (cli)
- ansible-inventory (cli)
- ansible-playbook (cli)
- ansible-pull (cli)
- ansible-test (cli)
- ansible-vault (cli)
- ansible (alias)
- ansible-community (alias)
- ansible-config (alias)
- ansible-console (alias)
- ansible-doc (alias)
- ansible-galaxy (alias)
- ansible-inventory (alias)
- ansible-playbook (alias)
- ansible-pull (alias)
- ansible-test (alias)
- ansible-vault (alias)

## Dependencies

- certifi
- cryptography
- libsodium
- libssh
- libyaml
- python@3.14
- tree

## Build dependencies

- pkgconf
- rust

## Uses from macOS

- krb5
- libxml2
- libxslt
- openldap

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 14.1.0
- Package-manager updated: 2026-07-02
- Local data: ok
- Upstream repository: https://www.ansible.com/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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?

### Timeline

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

### Sources

- <https://docs.ansible.com/projects/ansible/latest/index.html>
- <https://docs.ansible.com/projects/ansible/latest/reference_appendices/config.html>
- <https://docs.ansible.com/projects/ansible/latest/reference_appendices/release_and_maintenance.html>
- <https://github.com/ansible/ansible>
- <https://pypi.org/project/ansible/>
- <https://www.redhat.com/en/about/press-releases/red-hat-acquire-it-automation-and-devops-leader-ansible>


## Security Notes

No matching local secret-handling manifest was found for ansible. Nucleus package metadata is still published here so future coverage has a stable package URL.



## 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

- Unix: $ANSIBLE_CONFIG, ./ansible.cfg, ~/.ansible.cfg, /etc/ansible/ansible.cfg

## Credential files

- Unix: ~/.ansible/galaxy_token
## Source Database Details

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

## Other Package-Manager Records

- Debian apt - ansible - 12.0.0+dfsg-0+deb13u1: normalized package name match | Debian stable package indexes: ansible from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Configuration management, deployment, and task execution system | https://github.com/ansible-community/ansible-build-data/
- Nix - ansible: normalized package name match | nixpkgs package indexes: ansible from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - ansible - 9.2.0+dfsg-0ubuntu5: normalized package name match | Ubuntu 24.04 LTS package indexes: ansible from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Configuration management, deployment, and task execution system | https://www.ansible.com
- apk - ansible - 14.0.0-r0: normalized package name match | Alpine Linux edge package indexes: ansible from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | core components for Ansible | https://ansible.com/
- apk - ansible-pyc - 14.0.0-r0: normalized package name match | Alpine Linux edge package indexes: ansible-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for ansible | https://ansible.com/
- dnf - ansible - 13.7.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: ansible from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Curated set of Ansible collections included in addition to ansible-core | https://ansible.com
- pacman - ansible - 14.0.0-1: normalized package name match | Arch Linux sync databases: ansible from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Official assortment of Ansible collections | https://pypi.org/project/ansible/
- zypper - ansible - 14.0.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: ansible from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Radically simple IT automation | https://ansible.com/
- MacPorts - ansible: normalized package name match | MacPorts ports tree: sysutils/ansible/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- zypper - ansible-test - 2.21.0-2.1: installed executable or alias match | openSUSE Tumbleweed package metadata: ansible-test from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Tool for testing ansible plugin and module code | https://ansible.com/


## Related links

- [Cloud CLI packages](https://www.automicvault.com/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Productivity CLI packages](https://www.automicvault.com/pkg/productivity-cli-packages/) - Matched curated productivity category metadata from av.db.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [tree](https://www.automicvault.com/pkg/brew/tree/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [molecule](https://www.automicvault.com/pkg/brew/molecule/) - Popular package that depends on this formula.
- [ansible-creator](https://www.automicvault.com/pkg/brew/ansible-creator/) - Shares av.db curated category or tags: automation, cli, cloud-infrastructure, configuration-management.
- [kubecfg](https://www.automicvault.com/pkg/brew/kubecfg/) - Shares av.db curated category or tags: cli, cloud-infrastructure, configuration-management.
- [ansible-cmdb](https://www.automicvault.com/pkg/brew/ansible-cmdb/) - Shares av.db curated category or tags: cli, cloud-infrastructure, configuration-management.
- [ansible-lint](https://www.automicvault.com/pkg/brew/ansible-lint/) - Shares av.db curated category or tags: cli, cloud-infrastructure, configuration-management.
- [helmfile](https://www.automicvault.com/pkg/brew/helmfile/) - Shares av.db curated category or tags: cli, cloud-infrastructure, configuration-management, deployment.
- [talm](https://www.automicvault.com/pkg/brew/talm/) - Shares av.db curated category or tags: cli, cloud-infrastructure, configuration-management.
- [tanka](https://www.automicvault.com/pkg/brew/tanka/) - Shares av.db curated category or tags: cli, cloud-infrastructure, configuration-management.
- [actions-batch](https://www.automicvault.com/pkg/brew/actions-batch/) - Shares av.db curated category or tags: automation, cli, cloud-infrastructure.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
- curated agent safety answer
