Thursday, July 13, 2017

Ansible installation yum based

Ansible:-

 Ansible is a push method config management tool, Relay on ssh protocol and Python is required on master and other nodes,support windows too through winRM module.

Installation :

1) ansible package is available in EPEL repository so EPEL is required.
2)yum -y install ansible
3)boto module installation for aws modules support
4)pip install boto ; pip upgrade boto

Verification:
#ansible --version

user creation and access path creation 

Ansible master node public key needs to copy all the nodes and ansible user sudo access must create.

master node :
 #useradd ansible;passwd ansible;su - ansible;ssh-keygen ;ssh-copy-id -i id_pub ansible@node1
   visudo ; ansible ALL=(ALL)  NOPASSWD
node1:
 #useradd ansible;passwd ansible;su - ansible