AnsiblePilot — Master Ansible Automation
AnsiblePilot is the leading resource for learning Ansible automation, DevOps, and infrastructure as code. Browse over 1,400 tutorials covering Ansible modules, playbooks, roles, collections, and real-world examples. Whether you are a beginner or an experienced engineer, our step-by-step guides help you automate Linux, Windows, cloud, containers, and network infrastructure.
Popular Topics
About Luca Berton
Luca Berton is an Ansible automation expert, author of 8 Ansible books published by Apress and Leanpub including "Ansible for VMware by Examples" and "Ansible for Kubernetes by Example", and creator of the Ansible Pilot YouTube channel. He shares practical automation knowledge through tutorials, books, and video courses to help IT professionals and DevOps engineers master infrastructure automation.
Install Ansible on macOS Monterey with Homebrew — Video Tutorial
Learn how to install the latest release of Ansible and its dependencies on macOS 12.6 Monterey using the Homebrew Package Manager.
What You'll Learn
- How to Install Ansible for Mac Universal (Intel Chip and Apple Silicon) using Homebrew?
- Links
- code
- installation
- verification
- Conclusion
- Related Articles
Full Tutorial Content
How to Install Ansible for Mac Universal (Intel Chip and Apple Silicon) using Homebrew?
Homebrew is an incredible package manager for macOS, allowing you to install and maintain up-to-date software easily.
I’m Luca Berton and welcome to today’s episode of Ansible Pilot.
Links
- https://formulae.brew.sh/formula/ansible
code
Ansible is available as package “ansible” in Homebrew Package Manager for Mac Universal (Intel Chip and Apple Silicon)
installation
```bash
lberton@Lucas-MBP ~ % brew install ansible
Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
highway
You have 1 outdated formula installed.
You can upgrade it with brew upgrade
or list it with brew outdated.
==> Downloading https://ghcr.io/v2/homebrew/core/ansible/manifests/6.4.0
Already downloaded: /Users/lberton/Library/Caches/Homebrew/downloads/d0e2c11f4aa8bcabca08e582a38531b294bba158e761cd4058f9d4a98029475d--ansible-6.4.0.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/ansible/blobs/sha256:0a173d0d505628d07
Already downloaded: /Users/lberton/Library/Caches/Homebrew/downloads/8b047b2c1cc2bf0f7df03f22f0a78d5d971620e195e7bdcfc7b954448ac781fc--ansible--6.4.0.arm64_monterey.bottle.tar.gz
==> Pouring ansible--6.4.0.arm64_monterey.bottle.tar.gz
🍺 /opt/homebrew/Cellar/ansible/6.4.0: 28,126 files, 347.7MB
==> Running `brew cleanup ansible`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
lberton@Lucas-MBP ~ %
```
verification
```bash
% ansible --version
ansible [core 2.13.4]
config file = None
configured module search path = ['/Users/lberton/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /opt/homebrew/Cellar/ansible/6.4.0/libexec/lib/python3.10/site-packages/ansible
ansible collection location = /Users/lberton/.ansible/collections:/usr/share/ansible/collections
executable location = /opt/homebrew/bin/ansible
python version = 3.10.6 (main, Aug 30 2022, 04:58:14) [Clang 13.1.6 (clang-1316.0.21.2.5)]
jinja version = 3.1.2
libyaml = True
lberton@Lucas-MBP ~ %
```
Conclusion
Now you know how to install Ansible for Mac Universal (Intel Chip and Apple Silicon) using Homebrew in macOS.
Related Articles
- [Can Ansible Install an OS?](/articles/can-ansible-install-an-os)
- ['How to install Ansible in Pop!_OS 24.04 — Ansible install'](/articles/how-to-install-ansible-in-pop-os-24-04-ansible-install)
- [Install Ansible on macOS: Homebrew & pip Installation Guide](/articles/how-to-install-ansible-in-macos-ansible-install)
About This Tutorial
- Author: Luca Berton
- Difficulty: Beginner
- Read time: 2 min
- Category: installation
Read the full written article: Install Ansible on macOS Monterey with Homebrew
Related Video Tutorials
- Install Visual Studio Code: Manual, Homebrew, Ansible Methods — Learn how to install Visual Studio Code on macOS using manual download, Homebrew, or Ansible. Explore the pros and cons of each installation method.
- Install TechSmith Camtasia 2022 (Screen Recorder and Video Editor) in macOS — How to install TechSmith Camtasia (Screen Recorder and Video Editor) to macOS 12.6 Monterey format Mac Universal (Intel Chip and Apple Silicon) on a MacBook.
- Ansible Troubleshooting Installation Issues on macOS and Python — Learn how to resolve the ImportError for Jinja2 when installing Ansible on macOS using Homebrew, ensuring smooth automation setup.
- Installing Ansible: A Step-by-Step Guide — Learn how to install Ansible on Linux, macOS, and Windows, and configure it for efficient IT automation with this step-by-step guide.
- How to Upgrade Ansible on macOS Using Homebrew — Keeping Your Ansible Environment Up-to-Date with Homebrew. Practical examples and step-by-step guidance on How to Upgrade Ansible on macOS.
- Install Ansible on macOS: Homebrew & pip Installation Guide — How to install Ansible on macOS with Homebrew (brew install ansible) or pip. Configure PATH, test installation, manage versions.