Webux Lab - Blog
Webux Lab Logo

Webux Lab

By Studio Webux

Search

By Tommy Gingras

Last update 2022-04-13

ToolAnsible

Install Ansible on MacOS

Install python 3.9 or later

Use the official website to do so. https://www.python.org/downloads/release/python-390/

uninstall existing python version

You can use the command like this one: sudo rm -rf /Library/Frameworks/Python.framework/Versions/3.7

Uninstall Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"

Install ansible

/Library/Frameworks/Python.framework/Versions/3.9/bin/python3 -m pip install ansible

Usage

Now with this new setup you must use /usr/local/bin/python3 within you ansible.cfg

On Linux:

ln -s /usr/bin/python3 /usr/local/bin/python3

Extra

  • You must reinstall aws cli v2 from the official website.
  • pip3 install boto botocore cfn-lint

How to install jq

You can install macports, then use the following command:

port install jq