How to write your first Ansible playbook | Write Simple Ansible Playbook | Learn Ansible Basics
Вставка
- Опубліковано 10 жов 2024
- DevOps Online Training Registration form: bit.ly/valaxy-...
For Online training, connect us on WhatsApp at +91-9642858583
============ Online Trainings =========
Online Trainings:
DevOps Practitioner Training ► bit.ly/ValaxySMD
DevOps Internship Training ► bit.ly/ValaxyRPT
Interview Preparation Sessions ► bit.ly/ValaxyDIP
Azure DevSecOps Training ► bit.ly/ValaxyADP
CyberSecurity Training ► bit.ly/ValaxyCST
Mean Stack Web Development ► bit.ly/ValaxyMSWD
Python Complete Course ► bit.ly/ValaxyPC
Data Science Training ► bit.ly/ValaxyDSP
Linux Shell Scripting ► bit.ly/ValaxyLSS
Real-time DevOps Project ► bit.ly/ValaxyDRP
Azure Admin Training ► bit.ly/ValaxyAA
============ Udemy Courses =========
AR Shankar Udemy Courses ► bit.ly/udemysh...
DevOps Workshop-2 ► bit.ly/udemyde...
DevOps Project-1 ► bit.ly/udemyde...
Kubernetes microservices ► bit.ly/udemykube
Linux for DevOps ► bit.ly/udemyvinux
Git for DevOps ► bit.ly/udemygi...
Ansible for DevOps Beginners ► bit.ly/udemyan...
Maven for DevOps ► bit.ly/udemymaven
============ Our Other Courses =========
Packages:
Valaxy Ultimate Plan ► bit.ly/ValaxyUP
DevOps AWS and Python ► bit.ly/ValaxyDAP
DevOps AWS and Shell Scripting ► bit.ly/ValaxyDAS
AWS Pack ► bit.ly/ValaxyAP
Other Courses:
DevOps Course ► bit.ly/ValaxyDCC
Azure Administration ► bit.ly/ValaxyAAD
Production Ready Project ► bit.ly/ValaxyPRP
Kubernetes Project ► bit.ly/ValaxyKP
AWS (Amazon Web Services) ► bit.ly/ValaxyAWS
Python Complete Course ► bit.ly/ValaxyPCC
Shell Scripting ► bit.ly/ValaxySS
AWS automation with Boto3 ► bit.ly/ValaxyA...
Docker & Kubernetes ► bit.ly/ValaxyDK
Ansible for the DevOps ► bit.ly/ValaxyAD
DevOps Diploma Program ► bit.ly/ValaxyDDP
Valaxy PPTs ► bit.ly/ValaxyPPT
============ Free resources =========
DevOps Resumes ► bit.ly/ValaxyDR
Azure DevOps Resumes ► bit.ly/ValaxyADPR
Tools to learn in DevOps ► • Which DevOps tools sho...
============ Connect with Us =========
Facebook ► bit.ly/devopsgang
Instagram ► bit.ly/valaxyinsta
LinkedIn ► bit.ly/valaxyln
Website ► www.valaxy.in/
► courses.valaxy... ============ Connect with Us =========
Facebook ► bit.ly/ValaxyFB
Instagram ► bit.ly/valaxyinsta
LinkedIn ► bit.ly/valaxyln
Website ► www.valaxy.in/
► courses.valaxy...
#Devops #Valaxy #AWS
Indian guy on UA-cam comes in clutch as usual, explained this better than my lecturer.
Thanks @LionFeldman, Glad that it helped.
Hi Sir, I have started learning DevOps recently. There were many videos where i couldn't find proper learning, then i found your videos which are excellent that none of the trainers are providing the explanation like how you do.I have referred your channel to my friends as well. You are doing awesome job Sir.Thanks for sharing your knowledge.
Glad to hear that. and thanks for helping us to grow
@@ValaxyTechnologies Thanks and same here Sir :)
my gratitude for this wonderful illustration on ansible-playbook. you folks make life much easier for everyone by your teaching. much appreciated for your head work sharing your knowledge. Thanks again !!!. Mat.
Great video. This is the best explanation for beginners I've seen. The one part I am still a little confused on is the sudo password. I would prefer to see how one can use the Ansible Vault feature to authenticate vs adding the user to sudoers. Also I am curious how one can use this to do simple changes on a cisco router or other router. How to pass a different user name and do the cisco 'enable' command and so forth.
This is literally the best explanation. I subscribed to your channel just a few minutes of listening to your explanation. Thank you 🙏🏾
Your voice is so humble.
Really i would love to join your classes. But i have already joined. But, in future i will definitely definitely connect with your offline classes.
thank you so much sir for ur valuble explanation becz i solved lot of queries from ur videos only .... when i stuck in anywhere in deovps its solved in ur channgel with ur videos
thanks you. great to hear that.
The way you are explaining is really outstanding. From one corner of India, I am blessing you and wishing you all the best.just keep it up.
I am beginner of Devops but I like all the videos as demonstrated in a simple way
thanks bro
Thanks for the work you have put. I was learning ansible from different sources but couldnt write the playbook confidently. You've explained well and I was able to download my http packages ;)
Excellent hands on based training material. Good to see a jump start on the ansible scripts .
Thanks Magesh,
If you would like to see the full course of this.
Free access to AR Shankar courses for next 2 months on skillshare. Use below link
www.skillshare.com/classes/Ansible-for-the-DevOps-Beginners-System-Admins/1701816809?teacherRef=843528918&via=teacher-referral&ShortUrl&
Thank you sharing your knowledge in an open social network !!
I'd like to know more about hosts and installing ansible in an AWS EC2 Amazon Linux.
I'm waiting for the post which I requested.
Thanks in advance !!
Do take time to look around in our channel. All your questions are answered in the DevOps Playlist.
To know more please join in our facebook group
facebook.com/groups/valaxy.aws.devops.gang/
That's a really great tutorial sir.
Helped me to understand the core logic and working of ansible
alingment=indentation
minus=hyphen
and when you write in yaml the collection of tasks are called list and list get started with - that's why whenever you are starting a task before that you have to start a list and then task
Sir,
1. We request you please make the videos on Shell script which is required for DevOps.
2. Please make the videos of all Ansible topics with real time examples on different usage.
We know in youtube there are lot of videos We are fan of your ways of teaching...
Thank you Sir.
We will discuss shell scripting internally, not the top most priority at the moment. But ansible topics are on the way in the coming weeks/months.
In the mean time, can we request you to share, like & subscribe to our channel
The way u explained is good bro, we can easily understand.
Can you explain dis
We make a playbook to check redhat os version but how to send this alert in Outlook mailbox notification
God Bless you, SIR. We All Appreciate your Help.
Hey bro,
Could you please create a video? I'm currently running an Ansible playbook from Jenkins. Right now, I have defined the application in the Jenkins pipeline library, and I need to use the app name as a parameter in the Ansible playbook.
Thank you so much for the explanation.
Can you please integrate Rundeck and Ansible to perform operations on the target server, so that we can perform our tasks using GUI.
So that we can also learn new things and which will be easy for the non-Ansible learners to perform tasks.
Looking forward to the video I suggested, Thanks in advance for the video.
Very helpful tutorial simple and easy to understand
Thank you sir.
You are most welcome!
Thanks you Shankar for this tutorial, this is really helpful for me alot
You are most welcome
Now you can follow us on Instagram as well
instagram.com/valaxytechnologies/
Hi, Great Video, i want to learn more on debug and how to show output on screen, also do ansible has any tool like powershell, where you can see modules
Thanks a ton . Its helped a beginner like me to understand
Your Welcome Amit! Glad to know that! :) Thank you for the review :)
Very good way of explanation, thanks for it
Nice tutorial... understandable.. thanks
Thanks for the tutorial, I liked the way you are explaining.
Hi.. very neatly explained. Thank you so much. Can you also show me on how to write playbook for Sensu agents installation.
Can you explain how to move into the playbook directory while installing nginx package
Most helpful to
clear the base knowledge.............really awesome .
I need to install forticlient to 150 VMs. Can I use the same method to do that?
Following ur videos regularly .....nice and clear explanation ......without missing any points....
Doing a great job Mr Shankar.....
Thanks. Join our facebook group to get in touch with us.
fb.com/valaxytech
Is there actually a directory you "have to" place this newly created file to add the contents of the playbook or it doesn't matter?
It was a very good video👌👌👏we want more videos that would explain more about modules👍
Sure 👍
Nicely explained and very easy to understand
not clear from which machine you are running playbook against which server you are installing Nginx, on which machine you modified sudoers file?
Thanks. Very good one.
Please can you tell what is the editor you are using to write or edit yml files directly on Linux machine.
Every day I watch at least one video of yours.
We should introduce badges, rewarding your viewership!! Cheers!!!
Explained very nicely I seen many Tutorials yours is one of the best keep doing
Hi, Thanks for watching this video. Please subscribe to our UA-cam channel.
very good explanation.
This is so helpful. Thank you :)
Hi, can you please write ansible playbook to perform ssh login on remote host and then check for sudo access
Thank you Sir...CONCEPTS EXPLAINED NICELY!!!
how did u authenticated ec2 instance from ansible ? U just given host IP in hosts file.
well explained thank you for the video.
Nothing but thank you :)
Bro super explanation can u plz do full ansible course
Hi you tell me how to write the below playbook.
write a ansible book which will list all the folders and files having permession 0775 and output should be saved in a file??
Do tell us, what you have tried so far (pastebin maybe?) we can help you from there?
Any live demo on ansible....Or do u have seperate classes on Ansible..
Can you explain, what you mean by live demo?
It was showing youtube live in 30 min. So I thought that any live demo like webinar you are conducting on ansible..
You must be getting confused about "Premiere"
Do you know how to write server automatic testing script, such as to know space is available or not, restart, monitoring. For build purpose I required it.
Hi Jafffar,
space, restart or monitoring can be done with help of minoring tools like, Promotheus, Nagios, datadog, Remedy etc..
But I didn't get "Automatic testing script". What do you want to test here.
Excellent explained Good Job
Glad you liked it
Thank you so much!!..could understand easily!!..God bless you!
Really quick and helpful ! Nice
Thank you, that's very good start to learn Ansible, but I have a question; while connecting to AWS EC2, why it doesn't need any password or .pem file?
Hi Ahmet, because we are using key based authentication. For this you need public and private keys. it automatically picks up user private even though you don’t specify while connecting to server.
you can find my complete ansible course here
www.udemy.com/course/valaxy-ansible/?referralCode=9F36DC2010AEB6D64263
Very good video sir! 😊Could you please add some videos on how to execute commands in a router using ansible, to start with.
Thank you! 👍
wow, Why? Does the router have APIs? Do they have publicly available docs/SDK to support automation?
What is the objective of this exercise?
Hi Srinath, have you got any idea on the above implementation using Spring boot application - how to execute commands in a router using ansible playbooks
Thank you so much brother
Simple english
Clarity on subject
You made it easy 😊🙏🙏🙏👏👌
Well EXPLAINED.
Please make videos on Terraform and shell scripting
By default nginx will run right... On ec2 instance? Why it is not running.??
U havnt mentioned in Security groups thr port number?.. so that is y its not working???
that's right. You need to create the inbound rule under the Security Groups in order to open the port. I just followed the video and have done that.
Can you show one example to configure router
Please create a video on setting up a windows host using ansible..I had a tough time to configure ansible installed on Ubuntu 16/18/20.x
Thank you, simple and straight forward
This is really great for beginners
Excellent breakdown 👏👏
Thanks. my question is slight different to this topic, what is the difference between deployment only by Jenkins and deployment Jenkins+Ansible
Incase if you want to install any softwares or packages in the deployment server you can do that right
How to create the basic and intermediate level playbooks such as (Copying files/ patching the server using yum etc)
Better you can follow my ansible course. it defiantly helps.
courses.valaxy.in/courses/ansible
Thanks a lot for sharing this knowledge, for me it’s so useful. 👍
Glad it was helpful!
Better explained ...its very helpful.
Thanks really awesome!
Your Welcome Victor !
Nice explanation
Thanks for liking. Keep watching !
Sir. Can we create hosts file with different name ??
Very nice Explanation sir
You are welcome, Do Like, Share and Subscribe. If you are looking anything in specific add them here.
Hi Sir, Followed every step but "UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).",
"unreachable": true" getting this error, can you able to fix this?
Sir how did you create this playbook directory inside opt..
Can u please temme d steps... Because mkdir is not working for me in centos when I am trying to create it for ansansible user?
Do yourself a favor,
Part 0 - Introduction to Linux in AWS : ua-cam.com/video/Elfk18EGrJs/v-deo.html
Part 1 - Linux Commands for AWS: ua-cam.com/video/wxkl_3HJgvc/v-deo.html
Part 2 - Linux Commands for AWS: ua-cam.com/video/Owh8pElYiaQ/v-deo.html
Part 3 - Linux Commands for AWS: ua-cam.com/video/66Pbb8YLhoU/v-deo.html
Part 4 - Linux Commands for AWS: ua-cam.com/video/QT_ezFCBS_A/v-deo.html
More - ua-cam.com/channels/_evcfxhjjui5hChhLE08tQ.htmlsearch?query=linux
if we want to do it for complete vpc how can we do it
Thank you..Now I understand :)
Very helpful for beginers
Best explanation
Thanks for the video. ca you provide more videos for playbooks examples. Based on the modules.
Brilliant. What command do you use to install absible? Any installation guide?
$ sudo apt update
$ sudo apt install software-properties-common
$ sudo apt-add-repository --yes --update ppa:ansible/ansible
$ sudo apt install ansible
thats the code ansible itself tells you to insert
you can also do sudo apt upgrade if you want
additionally of course
ok but this machine is ubuntu ok but amazon ec2 machine what type command use
Sir,
can you please tell me how to write adhoc command for root user. Eg: ansible webservers -m pacakage -a "name=wget state=installed sudo=yes" is not working. Could you please assist me on this
Please can you provide some more videos on playbooks
Thanks for your comment.
Please join in below Facebook group to get in touch with you.
facebook.com/groups/valaxy.aws.devops.gang/
Nice explanation 🔥
hi sir how to write for this?I need to check whether given list of directories is having 0755 and specific group of user through ansible playbook?
Starting with linux basic[s] commands - ua-cam.com/video/wxkl_3HJgvc/v-deo.html
Test these and incorporate them into your playbook
Excellent tutorial! Thanks a lot
Very good thanks!
nice and smooth
Could you record on session on Kubernetes Orch. (full life cycle of orchestration)
To know more please join in our facebook group
facebook.com/groups/valaxy.aws.devops.gang/
Thanks for the Knowledge sharing
could Please upload some more videos related to playbooks in Real time projects
It will be help full for many people around here.
Good class sir
Could you please add how to patch multiple windows servers using ansible in GUI mode.
You can have a look here - github.com/miztiik/Automated-Update-Management-in-AWS
where is the ssh connection established between Control and Managed Node
Hi sir how to resolve the ,unreasonable, permissions denied (public key)
Good one
you are the best !
Well explained!!👌🏻👌🏻
Very useful
not all hero wear capes
thank you
thank you very much
Very nice explanation sir.
To know more please join in our facebook group
facebook.com/groups/valaxy.aws.devops.gang/
How to write a playbook for creating 10 users in jenkins using Ansible?
Thnx a lot really helpful