Login as ec2-user Sudo suYum update Yum install ansible Rpm –Uvh https://.............rpm Yum install ansible Ansible - - version
Then in Ansible host, after yum update……..
Vi sudo
ec2-user ansadmin
ALL=(ALL) ALL=(ALL)
NOPASSWD :ALL NOPASSWD :ALL
do the same in Ansible host also
Goto /etc/ssh/sshd_config and enable PasswordAuthentication Yes
Service restart sshd Goto AnsibleHost and do the same
Now, for the 3rd step in Config’n, login as admin and generate the ssh-key
Cd .ssh Ssh]$ ssh-copy-id #Ansiblehost Id#
To send the key to the masters…………ssh-copy-id #ip of Ansible host#
Now, the key was shared with the Master……..now connect to the master ….ssh Ansiblehost IP All this to be done on Ansible control server only………..
Now , sudo vi /etc/ansible/hosts
In this file, goto a new line and type [all_hosts] Ansiblehost IP(172.31.29.252)…………save and exit