Difference between revisions of "Ansible"

From Ever changing code
Jump to navigation Jump to search
Line 20: Line 20:
  sudo apt-get install virtualbox
  sudo apt-get install virtualbox
Then [[Vagrant_-_build_always_same_VMs#Install|install Vagrant]]
Then [[Vagrant_-_build_always_same_VMs#Install|install Vagrant]]
= Commands quick reference =
ansible local -m setup -a 'filter=ans*ipv4*'  #filter facts


= Reference =
= Reference =
*[http://docs.ansible.com/ansible/intro_installation.html#getting-ansible Ansible installation]
*[http://docs.ansible.com/ansible/intro_installation.html#getting-ansible Ansible installation]

Revision as of 12:14, 7 March 2016

Ansible - management and configuration system

... watch the space :j

Install

apt-cache policy ansible | grep -A1 Installed # check version it will install
sudo apt-get install ansible

Install dependencies manually

sudo apt-get install python python-setuptools python-crypto python-jinja2 python-paramiko python-pkg-resources python-yaml python python-httplib2 python-netaddr

Download a version from Ansible git repository you need

wget https://releases.ansible.com/ansible/ansible-1.9.4.tar.gz
tar -xzvf ansible-1.9.4.tar.gz 
cd ansible-1.9.4/
sudo  make
sudo python setup.py install

Build VM with Vagrant

sudo apt-get install virtualbox

Then install Vagrant

Commands quick reference

ansible local -m setup -a 'filter=ans*ipv4*'   #filter facts

Reference