Homebrew

The first installation method is to use a package called Homebrew.

Homebrew is a package manager of macOS. It can be used to install command-line tools and also desktop packages. It describes itself as The missing package manager for macOS and it is normally one of the first tools I install after a clean installation or when getting a new computer. You can find out more about the project at https://brew.sh/.

To install Ansible using Homebrew, you first need to install Homebrew. To do this, run the following command:

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

At each step of the installation process, the installer will tell you exactly what it is going to do and also prompt ...

Get Learn Ansible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.