Ansible Installation.docx

  • Uploaded by: tarakeshwar
  • 0
  • 0
  • July 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Ansible Installation.docx as PDF for free.

More details

  • Words: 133
  • Pages: 8
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

Related Documents


More Documents from "Martin Chamambo"