Quick step by step MAC install of Ansible

2016-04-20_15-50-33

 

 

For those of you wanting to install Ansible on your Mac, here is a step by step quick install:

Step 1:

Install PIP

sudo easy_install pip

Step 2:

Install the Python modules required by Ansible

sudo pip install paramiko PyYAML Jinja2 httplib2 six

NOTE: You may need to install Developer Tools, if so, finish the developer Tools install and then re-run the command

Step 3:

Get the source code

git clone git://github.com/ansible/ansible.git --recursive

Step 4:

Run the installer

cd ./ansible
source ./hacking/env-setup

NOTE: Once running the env-setup script you’ll be running from checkout and the default inventory file will be /etc/ansible/hosts. You can optionally specify an inventory file other than /etc/ansible/hosts

Updating Ansible

When updating ansible, be sure to not only update the source tree, but also the “submodules” in git which point at Ansible’s own modules

git pull --rebase
git submodule update --init --recursive

You may also like

Leave a Reply