Install Ansible

sudo apt-get update sudo apt-get install python-pip python-devel sudo pip install ansible


Inventory File

just like a hosts file, inventory file matches ip ipaddresses/domain groups to groups

Default place is:




or with a non-standard (22) port

Ansible assumes you are using key-based (password less) login

Running simple commands

ansible example -m ping -u [username]

Just pings the server.

To check memory usage run:

ansible example -a "free -m" -u [username]