Installing Ansible on MacOS

Ansible is a fantastic tool to automate remote host provisioning. It has modules to solve almost every task you can imagine when setting up a fresh new server.

To begin, you need to have Python 3 and Pip installed on your computer. To verify that everything is in order, you can use the command to display the Pip version:

$ python3 -m pip -V
pip 21.0.1 from /usr/lib/python3.9/site-packages/pip (python 3.9)

If everything is working fine, let’s install Ansible now.

$ pip install ansible

You should see the result similar to this one

And a quick verification that it works correctly:

$ ansible --version
Buy Me A Coffee

Now you’re ready to go and have fun with Ansible :)

Rafal Kozlowski

Previous
Previous

ANSIBLE INVENTORY, THE GOOD, THE BAD AND THE UGLY

Next
Next

Keep your ego under control