Day-15 | Ansible Zero to Hero |
ฝัง
- เผยแพร่เมื่อ 26 ก.ย. 2024
- Support my work
www.buymeacoff... Hi Everyone, Day-15 is about Ansible Zero to Hero. Please like, comment and share the video :)
Ansible Examples:
github.com/ans...
Ansible Interview Questions
• Answers to Ansible Int...
Telegram channel
===============
t.me/abhishekv...
About me:
-----------------
LinkedIn: / abhishek-veeramalla-77...
GitHub: github.com/iam...
Medium: / abhishekveeramalla-av
TH-cam: / @abhishekveeramalla .
.
Disclaimer: Unauthorized copying, reproduction, or distribution of this video content, in whole or in part, is strictly prohibited. Any attempt to upload, share, or use this content for commercial or non-commercial purposes without explicit permission from the owner will be subject to legal action. All rights reserved.
I took paid DevOps course but i was not understanding. Luckily found this channel , stopped watching that paid course and now i am understanding everything so perfectly and gaining confidence😇 Grateful☺
Welcome aboard!
Yes same conditions happening with me also got disappointed after took that paid course... Because not able to understand concepts and voice flow..
Thank you sir for this free and understandable course 😊
Unable to find your ansibke example repo@@AbhishekVeeramalla
Same here
@AbhishekSir, @BhupinderSir, @ShubhamSir give very good practical knowledge of DevOps free of cost... U guys deserve respect🎉
you forgot mPrashant sir
This playlist is a Goldmine of learning!
Means alot
It's crazy how good this tutorial is - most of the folks on TH-cam are copying from someone else and trying to sell courses. Thank you Abhishek (New York City)
You're very welcome!
Mashallah. Very detailed explanation about Ansible I have ever found in the learning term. Thank you Abhishek Bhai.
So nice of you
The best ever course content and better than paid courses. Each and every concept detailed explanation directly related to interviews and exams questions answers.
😍
@@AbhishekVeeramalla please help me my terminal keeps saying "Permission denied (publickey)" at the last step
i have tried and tried,my public key is well copied from the main server and i kept it in the authourized_key folder of the target server as instructed then saved it
@@owoseniemmanuel9015 just try another time pasting and run again
No words for the effort, no wasting of time here just pure knowledge every second.😇 shouldn't turn head for a second. Thank you Abhishek.
Thanks alot Vinay
what a comprehensible & sensible teaching of ansible by Mr. extensible ( Abhishek ).
1. Ansible installation
2. Setting up Ansible server and Target server(EC2 instance)
3. Configure passwordless authentication using ssh-keygen
4. Ansible adhoc commands
5. Inventory file (grouping servers using syntax [$server_type] )
6. Ansible playbook
7. Ansible galaxy(Roles)
Thank you bro
After setting up Ansible server and Target Server, I am not able to communicate to Target server private IP address from Ansible server's public IP address (ssh targetserverprivateIPAddress). Can you kindly help me out with it?
@@priyankashah5675 even i'm facing the same issue
The basics are clear about Ansible, tried it with 3 EC2 instances. Thanks a lot Abhisekh.
Today is my 9th day on this Playlist, will definitely complete it within a month.
Great 👍
After setting up Ansible server and Target Server, I am not able to communicate to Target server private IP address from Ansible server's public IP address (ssh targetserverprivateIPAddress). Can you kindly help me out with it?
Hii anna at 6:18 and at 11:04 when i'm trying to do passwordless authentication for ansible-server it"s showing permission denied (public key) at both time stamps and i'm doing this on ubuntu server.
Can u pls help me out...Thanks in advance
Yes getting the same issue, got any solution to it?
@@swathir6851 same issue, any resolution yet?
@@ghostxmetal After all the steps, changed the root password of Target machine, and tried ssh, this worked for me.
@@swathir6851 how do i do that? I created a new ec2 instance without any keypair. Still same issue.
@@swathir6851 i mean i tried to create with an existing keypair. When i went to edit that authorized_key file, it already had details about the .pem key i use to login. So i need to replace that with the one which we copy from?
Your the best trainer....thanks a lot for this playlist, its a big assert to all learner's
My pleasure!
thanks abbi sir for this awsome playslist ,following it regularly to learn devops
Your explanation is very easy to understand. Thank you. ✨
Most simplified explanation for ansible on TH-cam
Thanks a lot for your efforts
You are most welcome
Very simple and crystal clear explanation. vemana padhyam laga chala simple ga cheppesaru bro..Thank you abhishek bro, ur vedios are very helpful!!
Haha . Great comparison bro, Thanks
Excellent video I have watched till now
Thanks for sharing your knowledge and your precious time
Welcome 🤗
Thank you so much for your effort to teach us. Very clearly explained
i m a zero knwlg of devop ...by u r explanation i m get sum points hw a projects actually wks ... grt thank you abhishek .... u r frm hyd ... me to frm hyd ...
Wow .. Great
Just mesmerizing explanation bro just you're killing it. Always grateful for your Kindheart❣ for teaching to everyone in open-source.💓
Yaar Abhishek, till today I didn't knew how ansible for configuration management works even after a paid class. Thankyou so much for this video. Your teaching is really good and very easy to understand. Thankyou
❤️
@@AbhishekVeeramalla sir is this course enough to get a decent job???
ABHISHEK You are doing a good job bro .. videos are too good and much useful
Thank you so much 😀
amazing sir,
theory + practical make the learning fun and active
😍
I seen many Anisble videos in TH-cam this is best content to understand great
Thanks alot, Please share the channel
Really super and excellent with crisp of examples ... detailed explanation..I really appreciate your work and content sir
Keep watching, Thanks
Thank you for the clean and clear quick videos.
loved your lecture....😇😇😇😇... what an explanation... great work😄😄😄
Thanks a lot 😊
Hi @Abhishek bhai , Great content of Ansible & Ansible playbook . Keep enlighten us with these DevOps contents which itself a sea of knowledge.
Really I'm very impressed with hands-on session, some if the tutors are confusing the folks by ansible installation part itself 😅this is the best i have watched those who are the beginner stage it's gold so that they have enthusiasm to learn 😊much appreciated @abhishek for creating enthusiasm to learn 😉
Unable to ssh login...I have got an error "permission denied (public key)"
same for me also what to do ?
I can ssh from ubuntu to ubuntu but from ubuntu to redhat, it didnt work
@@velurubharath8929 how did you solve the "permission denied (public key)" message
@@arunkumark-r7l in authorised keys folder, there were some lines already. You should not delete those and copy the public key in next line of target server authorised keys. This worked for me
@@velurubharath8929 Thanks bharath ,i appreciate your helping nature ,will let you know if its works
Everything godd until u watch tutorials.You get lot of problems in minor things when u do it in your laptop for handson thats where the journey is many people give up in the start but if u surf the yt for minor grudges you suffer u will learn lot more things which stays in your mind.So if u stuck somewhere google it,yt search just don't watch the video and think you are ready to put it on your resume.
Never give up
Great Learning ⚡
Keep learning and Keep practicing
@@AbhishekVeeramalla Thank you Sir🖤
Crisp and clear explanation Abhishek!! Keep doing more!!!
Thanks a lot
thankyou sir for providing wonderful contents in details but in short span of time
So nice of you
Really a good session and detailed explanation!! Which makes ppl with non IT background as well understand the concepts of Ansible!! Please continue the same!!
It would be really helpful if you could do a second session on Ansible by showing the example of Kubernetes configuration!!
Glad it helped!
How Great are you Abhishek in one video getting clear all concepts 😍
Btw Abhishek you're the best bro I'm learning from your video and after that I crack one of the interview as well 🤝 no doubt I'm learning from many paid platform as well but your free course is better than that paid courses
awesome, Thanks
Bro I am facing issue while connecting Target EC2 instance at 11:03 . please help me out
I have seen many ansible vedios, but this the best vedio to understand non-it people like me.
Your the best in the way of explanation.
Really u explained clear & so easily Ansible. I love it....Thanx sir....for every topic/tool u r showing real-time project examples is awesome & appreciable ur honesty, commitment 🙏🤝👏
Instead of Inventory, if they call it as "Target Directory" its understandable.
Thanks alot
Thank you for this amazing knowledge. I was facing an issue with the project as I have not added the extension to the inventory file. Now my project is working completely fine. Thank you, completed this on the 28th Aug
bro can you help me please
hi abhiskek, i'm getting an error while trying to ssh to the target server after doing all the mentioned steps...
it is showing like "permission denied (public key)"
Same error I'm getting bro.. Hey abhishekh help us out
Same error.. u got any solution??
Getting same error.. @abhiskek please rply onit..
Same issue
After setting up Ansible server and Target Server, I am not able to communicate to Target server private IP address from Ansible server's public IP address (ssh targetserverprivateIPAddress). Can you kindly help me out with it?
Good work and very much useful video thank you sir, 😊
So nice of you
yes, i implemented with your tutorial, also faced some error and modifed the script at "become" as below:
- name: Install and start nginx
hosts: all
become: true
become_user: root
it worked and able to check the target machine, nginx is running on it :)
thanks this helped me a lot
HI Abhishek, As you mentioned in the video at 16:55 it is throwing error if we don't give 2 arguments -m and -a. I checked with ansible -i inventory and with ansible -i inventory all, but both of them gave me this ERROR! No argument passed to command module. ansible -i inventory all -m "shell" -a "ls" is working fine. Just for reference i am posting. Thank you very much for taking time to educate us Abhishek....It means alot to us. Keep doing Good!👍
Thanks alot srivalli for sharing with us
thanks you saved my time
thank you so much sharing this much of knowledge sir
Great lesson Abhishek👍 This is easy to learn and understand the concepts effectively. Thanks man.
Thanks a ton
your way of explaining is very good , thanks
Not sure why , but when I followed other tutorials , I used to get error for every command I start .. so I ended up learning
Now by following your course , I'm able to execute everything successfully for the very first attempt :) and understanding it very well ... Thank you andi :p
Glad it helped
After setting up Ansible server and Target Server, I am not able to communicate to Target server private IP address from Ansible server's public IP address (ssh targetserverprivateIPAddress). Can you kindly help me out with it?
ur the best teacher i ever seen
sir if i am connecting my private ip add to ssh ,it is showing me a permmission denied (publickey).
i am not able to execute my ansible .
same with my machine, did you find solution?
@shivamtiwari1618 any luck after that ? Are you able to connect it later ?
In this video Abhishek Anna took two Same Ubuntu server's that time "ssh ip address" it works..
But in your case you took(launched) two different servers like one was Ubuntu and second one was ec2-user in this case you have to mention target-server name like this "ssh ec2-user@ip address" I think you got it... right
Any solution for that? Facing the same error
@@Pawan-1858 i took bot ubuntu server even i am getting same access denied public key
hello abhishek, thank you for providing us with all this quality content, a lot of people appreciate it. are you planning on making a zero to hero playlist in ansible? maybe doing a demo on more complex project using roles or explaining more complex features of ansible. your are making a big impact on the world, thank you so much!
Abhishek, Thank you so much for making this video, your explanation is very crisp, clear and in detail. I am addicted to watch your videos, it gave me boost for Int preparation. Could you please make a video on ansible tower.
thank you abhishek
wow you made this so easy for me :) thank you abhishek sir
Thanks
Absolute Gem of a video
Thanks
wawo its so easy. your teaching method is so simple and straight. just MashAllah ❤. You are great sir
😍
Thank you sir for this knowledgeable session. to practice, I couldn't find your ansible-examples repository you showed in this video.
thank you for your effort. it's worth watching.
So nice of you
Thanks Sir very easy way explanation 🙏 thanks again
Most welcome
Hi, I'm getting an error (Permission denied-public key), while entering SSH followed by the target server IP address. Would you be able to help me out please?
did u found solution
PERFECT EXPLANATION ,VERY EXPLICIT
🙏🙏🙏
Thanks bro learned something new today
I got permission denied after entering key from Ansible ubuntu server to target server & when i gave the command of ssh with private ip - in the Ansible ubuntu server its says - Permission denied (publickey).
Same issue here brother
Did you found the solution to it?
If so can you please tell me!!
@@omprakash-ph4yp hey did u get the soln
Same issue
@@arnabsamadder1957 just try to redo it again....maybe that can fix
i have selected a keypair for target server and and do cat ~/authorizedkey there is an keygen already present and how do i go about it
also, if create targer ec2 server with out keypair access is getting denied
well said Abhishek sir 🤩 your content and way of teaching are awesome 👌
Awesome help to community brother hats off
Awesome
Great video! Very well explained. Thank you.
My pleasure
Hi Abhishek,
Unable to connect to other instances in a new session in MobaXterm or PowerShell as well, is there any other way?
I've created 2 instances as seen in the video but the connection issue is where I got stuck.
Great video , however it would be good if you could demonstrate using a role. I know you have a separate playlist where you might have covered these in details, but having it here would also be good
Hi, Abhishek.
When I used to paste the public key of ansible_server in authorized keys of target_server, there(In authorized keys) already a key exists(this is the access key of ec2(target_server)). I have removed the key and pasted the public key of ansible_server and I can log in to target_server through password less authentication. But, when I used to log in target_server in new terminal then it is showing server refused. Can you clarify my doubt?
One more doubt, While creating target_server(EC2), we have to generate access key for that????
Thanks a lot @Abhishek for the Knowledge you keep on sharing .It would be really helpful if you could also create a new video for Ansible -Configuring Kubernetes configuration from scratch
I have a doubt while creating target server. Should i create without key pair. Bcz it says permission denied.
Hi Abhishek, Hope you're doing well.
In the first place, I want to appreciate your efforts in sharing such a wealth of knowledge....
As you said in this session regarding Ansible, we can use the controller machine to control worker nodes to install or create any files or software on worker nodes, and I also noticed that in your video we must save the 'Ansible Controller Key-Gen' in worker nodes....
Let me clarify my question for example, if a company has 100 worker nodes and one Ansible controller, should we save the 'KeyGen' manually for each and every 100 worker nodes so that we can control them? I'm not sure, maybe you can clarify my question for me.
My lovefor ansible has just grown. Thankyou sir.
ididnt see when you added the ip address on the inventory file, did i miss something?
Hii Abhishek thank you for your great guidance for devops engineer...
I am preparing interviews for devops engineer with the help of your all lectures and videos and going good.
Only one big support required from your side can you please tell me more about cluster part like what is minimum size of instance we are using on prod level,staging level and development level.
As a practice part we are using t2.medium or t2.xlarge maximum but whats about realtime in production level of different stages.
If possible make one video on this topic as it is mandatory for interview most asking questions.
Please clear my doubt Hear itself as i have scheduled one interview on next Wednesday
Thanks for the video Anna amazing work. Can you also show us how to do dynamic inventory and automate process of password less authentication?
Great suggestion! Will try
super simple and best video to understand Ansible on TH-cam
Thank you so much Abhishek for your hard work.
can you please suggest some imp playbook examples from interview point of contact.
Hello abhishek bro.. While watching your video I got a doubt... Here we created only one target server.. But in organization level there will be 100's or 1000's of servers.. How we can enable passwordless for those many target servers?
May be using ansible roles? Would like to know the solution. Thanks
We can use ec2 userdata ( add public key of Ansible master to Authorizedkeys of new ec2 )
Hey we can write ansible playbook to authenticate into all 100 servers at a time . Something like this - hosts: all
tasks:
- name: Copy SSH public key to authorized_keys
authorized_key:
user: your_username
key: "{{ lookup('file', '/path/to/your/public_key/id_rsa.pub') }}"
@@thotasitharamanjaneyulu8029no I think, because we need access to those instances, Abhishek mentioned public key should be added to authentication keys of all instances then only ansible works.
Hi Abhishek, I cant connect 2 Ec2 servers from the windows, can u help me in that??
@AbhishekVeeramalla sir please adress the above query
hey abhishek plz make some more videos on this topic ..
If you can come up with one video covering all required concepts for AWS like VPC, Router, SG, vpc link,private link etc.that ll clear a lot of concepts of AWS.
Thanks.
Noted
Stopping myself very hard from clicking on the 'Skip Ad' button!!!!! 😇
😍
authorized_keys
not been created when I did ssh-keygen ? why so?
Hi Abhishek, im getting error (Permission denied :public key) , while entering ssh followed by target server ip address. kindly help me out?
will u able to solve it? im getting the same error
@abhishek - First of all, thank you for the Playlist. It's right on target. One doubt in Day 15 class. There can be an instance where Target server can be a public facing server right. Is it safe to place Public key in to Authorized keys? I understand it is public key but correct me if my understanding is wrong.
Great Video. Ansible zero to hero
Thanks
Hey @Abishek,
At 11:01 , you use ` ssh ` to connect to the target server .
However, we use `ssh -i @ ` to connect our local terminal to an aws instance.
Can't we use `@` format in the first command also ?
I haven't watched the entire lecture yet
Sir please make a one short video how to create dynamic inventory. This video is very helpful for me ❤thnx sir
Noted
Please, instead of adding the generated public key to the target server, what happens if we mistakenly add the generated private key to the target server?
how do we memorise the Commanda like -a "mproc" OR -a "df". can you share the list of commands for better understanding
Hi Abhishek
Thanks for your support by teaching DevOps. But I'm facing issue while understanding things because I'm person who wants to understand every line. So I could understand the command line meanings. Why and how you are writing. If possible could provide notes so that I can go through that notes side wise.
Thanks in advance 😊😊
Will try to upload notes
hii its tejas this side.
when i tried tpo make ssh connection,i am getting this error on terminal"ubuntu@ip-172-32-37-64: Permission denied (publickey)."
i follow al the steps correctly even crosschecked the steps.all things are going well till adding private key in target_server authorised_keys. but when i run the ssh command with private address,it shows error.
plss help me asap...i am stuck in this error from 2 days..i have read many documents on this also but nothing works
use this command - chmod 600 [path of pem file]
@@vishwadipingale8269 i am not allowed go to that session how i come i ran this command
Hi Abhishek, Am unable to connect using private ip address through mobaxterm getting connection timed out. Do i need to use bastion host to connect ec2 instances using private ip ? in this session you have used private ips for both the instances
hi Abhishek, thanks alot for the video
Excellent video. Loving so much day by day. Completed till Day 15.
One quick question please, we are installing packages in AWS EC2 instances and it is occupying extra storage, so will it cost ?
I have this doubt from so long time , can you please clarify ?
Thanks for the video. We need more videos on ansible.😇
so that configuration management is necessary for all projects..but in devopsified 1&2 ansible not used sir..why sir
Date- 23/08/2024 , 6:35PM, video 28:52, I ve tried following the steps till now but whenever I try to jump tp target server, my session got logout and not able to connect back. It shows some error saying No supported authentication methods available (server sent: publickey)... how do I login back to target server.
My doubt is regarding passwordless authorization, in the video we created public/private key and copied our public key to authorized keys of a worker server to connect passwordless. what if there are 1000 servers we need to configure. can you tell me how we will do that, do we need to copy public key to all 1000 severs or is there any other method? if we do like that for 1000 servers is that good practise. Please explain? thank you
You can use commands like ssh-copy-id and write a for loop
Hi @Abhishek, very useful playlist! Thanks a lot for this. I got a doubt - Consider the scenario where there is 1 central server (where ansible is installed) and 500 target servers. The requirement is ansible server can connect to 500 target servers only after including ssh key in all 500 servers. Isn't this a tedious manual work to add generated key in all 500 target servers ? Is there a shortcut/hack for this process?
Same doubt, any answer.
Nice explanation.
Glad you liked it