Skip to main content

Command Palette

Search for a command to run...

Ansible Day 36

Published
1 min read

Download epel repository

see epel downloaded

in server install ansible,python,git

Check ansible installed or not

Launch two instances; Ansible client1 and Ansible client2

Create a ansible user in server

Same ansible username create a both client also

Add root user privilege to ansible in server and node1 and node2

Edit the visudo file

Add ansible user

Allow ssh from server to client

Edit this file (All the three machines)

passwordauthentication yes

restart the ssh service all three machines

change ansible user in server

Now do ssh from server

now see working

create one file

See same file found in node1 also

exit

now login node2

create a one file

see same file found in node2 also

above methods used for ssh using password

now try ssh without password