Skip to content

Instantly share code, notes, and snippets.

@karantir
karantir / ansible.install.sh
Last active December 29, 2015 00:29
Ansible installation
echo "\nUpdating system packages..."
apt-get -qq update
echo "\nInstalling main dependencies..."
apt-get install --quiet --assume-yes git curl build-essential python-setuptools python-dev sshpass
echo "\nInstalling pip..."
apt-get install python-pip
echo "\nInstalling ansible"
pip install ansible
Function.prototype.inheritsFrom = function( parentClassOrObject ){
if ( parentClassOrObject.constructor == Function )
{
//Normal Inheritance
this.prototype = new parentClassOrObject;
this.prototype.constructor = this;
this.prototype.parent = parentClassOrObject.prototype;
}
else
{