Installing Ansible on a mac with an old operating system (eg Mavericks)

You may get an error with Brew which prevents you from installing ansible like:

brew install ansible

To fix this install ansible using pip

  • Install Xcode
  • sudo easy_install pip
  • sudo pip install ansible --quiet

To then upgrade ansible

  • sudo pip install ansible --upgrade

source