Ansible playbook to deploy the ssh key.

  Рет қаралды 11,431

Linux R

Linux R

3 жыл бұрын

Hello Guys,
I am Ram Mishra,
Welcome to my “Linux R” KZbin Channel.
About This Video: -
In this video i going to explained you “how to distribute ssh public keys using Ansible playbook” in rhel8.
Since ansible uses ssh to access to each of the remote hosts, before we execute a playbook, we need to put the public key to the ~/.ssh/authorized_keys so that you don’t need to input the password for ssh every time you execute the playbook.
Usually, people just manually copy the public key to the remote hosts’ ~/.ssh/authorized_keys files. But things could get quite exhausting when you have an inventory with more than hundreds of nodes. That’s why people are asking how to use ansible playbook to deploy the public key to the remote hosts.This post will show how to do that with examples.
Please Like, Share on my Video and Provide your valuable feedback by commenting in below comment section.
If you have any query please mention on comment session i will try to solve your query.
***************************************************************************
About This Channel:-
Friends, on this channel you get to see RHEL 8, RHCSA AND RHCE, Ansible (Automation) and AWS-Cloud related videos. With this, more educational videos will be found on this channel. Friends, if you like this channel, then please subscribe to the channel and do not forget press the bell icon button, for latest update.
Friends, if u r interested in taking rhel8 online classes for RHCSA and RHCE, Anisble (Automation) and AWS-Cloud, contact us threw given links.
Interested candidates are requested to register in the below mentioned link.
Registration Link: forms.gle/wfocDLANCLsExGrj8
My social Site Links:
Mailing address: linuxr798@gmail.com
Facebook Address: / retesh.mishra.33
Channel Link: / @linuxr798
#################################
📢THANKS FOR WATCHING
📢PLEASE LIKE SHARE AND SUBSCRIBE
📢JOIN FOR ONLINE TRAINING
=============================

Пікірлер: 33
@kozemit
@kozemit Жыл бұрын
Thank you Ram Mishra! Hello from Russia)
@LinuxR798
@LinuxR798 Жыл бұрын
your always welcome
@waldoguy15
@waldoguy15 2 жыл бұрын
Absolutely killed it. Thanks for this man!
@LinuxR798
@LinuxR798 2 жыл бұрын
your always welcome.
@aar021
@aar021 Жыл бұрын
The exact videos I was looking for. Thank you good Sir.
@LinuxR798
@LinuxR798 Жыл бұрын
your welcome.
@ravi_anumukonda3152
@ravi_anumukonda3152 2 жыл бұрын
Nice and very straight forward explanation.thanks
@LinuxR798
@LinuxR798 2 жыл бұрын
Thanks Buddy.
@shivusavalagi3751
@shivusavalagi3751 Жыл бұрын
Super, Thank you sir, it works
@LinuxR798
@LinuxR798 Жыл бұрын
yur always welcome.
@ayencoscolfield3312
@ayencoscolfield3312 Жыл бұрын
I just cant say anything but to say thank you ,nice work man, please keep it up
@LinuxR798
@LinuxR798 Жыл бұрын
Thank you very much.
@finsaver9756
@finsaver9756 3 жыл бұрын
Very i informative and good content
@LinuxR798
@LinuxR798 3 жыл бұрын
Thanks Buddy.
@asrn1739
@asrn1739 Жыл бұрын
Very clear. Thanks.
@LinuxR798
@LinuxR798 Жыл бұрын
yur welcome.
@govtr4095
@govtr4095 3 жыл бұрын
Very nice
@thereds32
@thereds32 Жыл бұрын
Thanks for the video. How would you execute this playbook if your remote hosts have different password. EG my hosts inventory have 10 servers with different root passwords. Or is it recommended to create Ansible service accounts on all remote hosts?? Thank you
@zoomkumar7554
@zoomkumar7554 3 жыл бұрын
very nice
@arunprasath2803
@arunprasath2803 2 жыл бұрын
Great
@LinuxR798
@LinuxR798 2 жыл бұрын
Thank you very much.
@MaheshVerma-ot2fm
@MaheshVerma-ot2fm Жыл бұрын
Is it working for multiple servers in one host.
@ACIDGameReviews
@ACIDGameReviews 2 жыл бұрын
Is it possible to create a user list and then put their individual ssh_key: "key" and then loop through this to create the user and add the key?
@LinuxR798
@LinuxR798 2 жыл бұрын
Possibility are there, we have to check it.
@rasheed.a873
@rasheed.a873 Жыл бұрын
If the sshd_config in the remote host has passwd authentication set to no , is there a way around that ?
@shivusavalagi3751
@shivusavalagi3751 Жыл бұрын
Yes I'm also have same about
@mahmudshuvo3588
@mahmudshuvo3588 Жыл бұрын
Hello Brother, what if i dont know the pass of root and i have sudo user but not password less sudo. Could you please share the playbook for such scenario. Could have been a great help . Thanks
@LinuxR798
@LinuxR798 Жыл бұрын
Thanks for this ..plz ping me on my email..i will try to help you.
@rashmisahu922
@rashmisahu922 Жыл бұрын
what is a background nowise
@tapankumarnayak1664
@tapankumarnayak1664 19 күн бұрын
Your voice is very fast and in background there is lot of noise is coming
@MaheshVerma-ot2fm
@MaheshVerma-ot2fm Жыл бұрын
And how to do in cross case
@royalrafi97
@royalrafi97 Жыл бұрын
hi sir where can we get ssh password???
@LinuxR798
@LinuxR798 Жыл бұрын
it's password less based.
Ansible Playbook.
13:42
Linux R
Рет қаралды 364
you need to learn Ansible RIGHT NOW!! (Linux Automation)
21:21
NetworkChuck
Рет қаралды 839 М.
Can You Draw The PERFECT Circle?
00:57
Stokes Twins
Рет қаралды 71 МЛН
Don’t take steroids ! 🙏🙏
00:16
Tibo InShape
Рет қаралды 39 МЛН
НЕОБЫЧНЫЙ ЛЕДЕНЕЦ
00:49
Sveta Sollar
Рет қаралды 8 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 118 #shorts
00:30
SSH Key Authentication | How to Create SSH Key Pairs
18:46
Akamai Developer
Рет қаралды 102 М.
Complete Ansible Semaphore Tutorial: From Installation to Automation
48:07
Getting started with Ansible 02 - SSH Overview & Setup
28:51
Learn Linux TV
Рет қаралды 215 М.
Simple automation for all your Linux servers with Ansible
26:00
Christian Lempa
Рет қаралды 65 М.
Fix for SSH Permission Denied (Public Key)
12:57
Susan B.
Рет қаралды 66 М.
This web UI for Ansible is so damn useful!
20:07
Christian Lempa
Рет қаралды 442 М.
Manage Windows like Linux with Ansible
41:39
Red Hat Summit
Рет қаралды 101 М.
Vortex Cannon vs Drone
20:44
Mark Rober
Рет қаралды 14 МЛН
phone charge game #viral #tranding #new #reels
0:18
YODHA GAMING RAAS
Рет қаралды 12 МЛН
Edit My Photo change back coloured with Bast Tech
0:45
BST TECH
Рет қаралды 334 М.
How much charging is in your phone right now? 📱➡️ 🔋VS 🪫
0:11