Skip to content
TrySitePrice

How to install Ansible on MacOS using CLI

Best/Tutorial

To install Ansible on MacOS using the command line interface (CLI), you can use the Homebrew package manager. Here are the steps to install Ansible using Homebrew:

  1. Install Homebrew, if it's not already installed on your MacOS system:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
  1. Install Ansible using Homebrew:
brew install ansible
  1. Verify the installation by checking the version of Ansible:
ansible --version

The output should show the version of Ansible installed on your system, for example:

ansible 2.9.16

This is how you can install Ansible on MacOS using the command line interface and the Homebrew package manager.