Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


ansible

This is an old revision of the document!


~~TOC~~

Ansible - Installation

Prerequisites:

  • EPEL repo.

Installation

  • Install ansible via EPEL repo.
    yum install ansible

or

  • Install latest version via git.
    # yum install python-setuptools
    $ git clone git://github.com/ansible/ansible.git
    $ cd ./ansible
    $ make rpm
    $ sudo yum localinstall ~/rpmbuild/ansible-*.noarch.rpm

Configure

  • Edit /etc/ansible/hosts
    192.168.1.50
    aserver.example.org
    bserver.example.org
  • Create ssh keys and setup the ssh-agent.
    $ ssh-agent bash
    $ ssh-add ~/.ssh/id_rsa
  • Ping all nodes.
    ansible all -m ping

Documentation

ansible.1402514358.txt.gz · Last modified: 2014/06/11 19:19 by admin