How to install Ansible in macOS - Ansible install

How to Install the latest and a specific version of Ansible with Homebrew Package Manager.
How to install Ansible in macOS. Today we’re going to talk about the easier way to install and maintain Ansible inside macOS. I’m Luca Berton and welcome to today’s episode of Ansible Pilot
How to install Ansible in macOS
Today we’re talking about How to install Ansible in macOS. The easier way to install and maintain Ansible inside macOS is to use the Homebrew Package Manager. It has already a build of Ansible with some versions available. The main advantage of using brew is that it takes care of all the necessary dependencies and it manage also the upgrade process. An alternative could be to use Python PIP but you’re going to download the source code and compile the software. It could be a solution for a developer that want always the latest up-to-date release.
Demo install Ansible in macOS
Let me demonstrate to you how to install the latest and a specific version of Ansible in macOS with Homebrew Package Manager.
code
- install the latest release
#!/bin/bash
brew --version
brew search ansible
brew install ansible
ansible --version
- install specific version
#!/bin/bash
brew remove ansible
brew search ansible
brew install [email protected]
/usr/local/opt/ansible\@2.9/bin/ansible --version
Recap
Now you know how to install the latest and a specific version of Ansible in macOS using Homebrew Package Manager. Subscribe to the YouTube channel, Medium, Website and Twitter to not miss the next episode of the Ansible Pilot.
Academy
Learn the Ansible automation technology with some real-life examples in my
My book Ansible By Examples: 100+ Automation Examples For Linux and Windows System Administrator and DevOps
Donate
Want to keep this project going? Please donate