How to write your first Ansible playbook | Write Simple Ansible Playbook | Learn Ansible Basics

2019 ж. 12 Там.
223 261 Рет қаралды

DevOps Online Training Registration form: bit.ly/valaxy-form
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/udemyshankar
DevOps Workshop-2 ► bit.ly/udemydevopsws
DevOps Project-1 ► bit.ly/udemydevops
Kubernetes microservices ► bit.ly/udemykube
Linux for DevOps ► bit.ly/udemyvinux
Git for DevOps ► bit.ly/udemygithub
Ansible for DevOps Beginners ► bit.ly/udemyansible
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/ValaxyAWSPythonBoto3
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.in/ ============ Connect with Us =========
Facebook ► bit.ly/ValaxyFB
Instagram ► bit.ly/valaxyinsta
LinkedIn ► bit.ly/valaxyln
Website ► www.valaxy.in/
► courses.valaxy.in/
#Devops #Valaxy #AWS

Пікірлер
  • Indian guy on KZhead comes in clutch as usual, explained this better than my lecturer.

    @LionFeldman@LionFeldman2 ай бұрын
    • Thanks @LionFeldman, Glad that it helped.

      @ValaxyTechnologies@ValaxyTechnologies2 ай бұрын
  • 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.

    @mathewkargarzadeh3158@mathewkargarzadeh31582 жыл бұрын
  • 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 ;)

    @janarajorobaeva9895@janarajorobaeva98953 жыл бұрын
  • That's a really great tutorial sir. Helped me to understand the core logic and working of ansible

    @prakhar992@prakhar9923 жыл бұрын
  • 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.

    @brianturney2124@brianturney2124 Жыл бұрын
  • 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.

    @alenka598@alenka5983 жыл бұрын
  • Thank you Sir...CONCEPTS EXPLAINED NICELY!!!

    @raheelanadaf7435@raheelanadaf74353 жыл бұрын
  • This is literally the best explanation. I subscribed to your channel just a few minutes of listening to your explanation. Thank you 🙏🏾

    @Queenbylk@Queenbylk Жыл бұрын
  • God Bless you, SIR. We All Appreciate your Help.

    @mmmubeen3878@mmmubeen38783 жыл бұрын
  • Thank you so much!!..could understand easily!!..God bless you!

    @danysara284@danysara2844 жыл бұрын
  • 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.

    @ChaitanyaRamadugu@ChaitanyaRamadugu3 жыл бұрын
  • Most helpful to clear the base knowledge.............really awesome .

    @mlipina5324@mlipina53244 жыл бұрын
  • Thanks for the tutorial, I liked the way you are explaining.

    @shiveshkumar4718@shiveshkumar47183 жыл бұрын
  • 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.

    @ashishgupta3788@ashishgupta3788 Жыл бұрын
  • This is so helpful. Thank you :)

    @rakesh989@rakesh9894 жыл бұрын
  • 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.

    @jklikhh@jklikhh3 жыл бұрын
    • Glad to hear that. and thanks for helping us to grow

      @ValaxyTechnologies@ValaxyTechnologies3 жыл бұрын
    • @@ValaxyTechnologies Thanks and same here Sir :)

      @jklikhh@jklikhh3 жыл бұрын
  • Thank you so much brother Simple english Clarity on subject You made it easy 😊🙏🙏🙏👏👌

    @BorappaNayaka@BorappaNayaka3 жыл бұрын
  • Excellent hands on based training material. Good to see a jump start on the ansible scripts .

    @mageshramalingam550@mageshramalingam5504 жыл бұрын
    • 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&

      @ValaxyTechnologies@ValaxyTechnologies4 жыл бұрын
  • Really quick and helpful ! Nice

    @Gabhane123@Gabhane1233 жыл бұрын
  • Thank you, simple and straight forward

    @jomarsison9823@jomarsison98232 жыл бұрын
  • Excellent breakdown 👏👏

    @crousekgare9682@crousekgare96822 ай бұрын
  • Thanks for the video. ca you provide more videos for playbooks examples. Based on the modules.

    @sudhakarg9286@sudhakarg92864 жыл бұрын
  • Excellent tutorial! Thanks a lot

    @krunalshimpi2970@krunalshimpi29702 жыл бұрын
  • 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

    @madhulin6518@madhulin6518 Жыл бұрын
  • you are the best !

    @abdallahmanel1723@abdallahmanel17233 жыл бұрын
  • 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

    @shrucan@shrucan Жыл бұрын
  • Well explained!!👌🏻👌🏻

    @midhinthomasroy4492@midhinthomasroy44922 жыл бұрын
  • Better explained ...its very helpful.

    @anuragsingh2824@anuragsingh28243 жыл бұрын
  • Nice explanation 🔥

    @villageitguys2433@villageitguys24333 жыл бұрын
  • This is really great for beginners

    @sanjeevkasturi@sanjeevkasturi3 жыл бұрын
  • well explained thank you for the video.

    @mrjacksparrow8942@mrjacksparrow894211 ай бұрын
  • 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

    @prabhukumar-sc6ud@prabhukumar-sc6ud2 жыл бұрын
    • thanks you. great to hear that.

      @ValaxyTechnologies@ValaxyTechnologies2 жыл бұрын
  • Nicely explained and very easy to understand

    @hiranamarasinghe7882@hiranamarasinghe7882 Жыл бұрын
  • Very good way of explanation, thanks for it

    @killamsettibalakrishna4256@killamsettibalakrishna4256 Жыл бұрын
  • 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

    @Sakshivjain20@Sakshivjain20 Жыл бұрын
  • Nice tutorial... understandable.. thanks

    @jhoestring@jhoestring Жыл бұрын
  • Nothing but thank you :)

    @sasakanjuh7660@sasakanjuh76603 жыл бұрын
  • Hi.. very neatly explained. Thank you so much. Can you also show me on how to write playbook for Sensu agents installation.

    @akilapradeep8324@akilapradeep8324 Жыл бұрын
  • Thanks a lot for sharing this knowledge, for me it’s so useful. 👍

    @jeevanpeddireddy2261@jeevanpeddireddy22614 жыл бұрын
    • Glad it was helpful!

      @ValaxyTechnologies@ValaxyTechnologies4 жыл бұрын
  • Well EXPLAINED.

    @madhulin6518@madhulin6518 Жыл бұрын
  • Thanks you Shankar for this tutorial, this is really helpful for me alot

    @sreenivassenisetty5211@sreenivassenisetty52113 жыл бұрын
    • You are most welcome Now you can follow us on Instagram as well instagram.com/valaxytechnologies/

      @ValaxyTechnologies@ValaxyTechnologies3 жыл бұрын
  • Very helpful tutorial simple and easy to understand Thank you sir.

    @ouedr30021@ouedr300212 жыл бұрын
    • You are most welcome!

      @ValaxyTechnologies@ValaxyTechnologies2 жыл бұрын
  • I am beginner of Devops but I like all the videos as demonstrated in a simple way

    @mkhan6021@mkhan60212 жыл бұрын
    • thanks bro

      @ValaxyTechnologies@ValaxyTechnologies2 жыл бұрын
  • Fantastic thanks man.

    @PaulEllisBIGDATA@PaulEllisBIGDATA3 жыл бұрын
  • 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.

    @prudhvisaiakhilthumu1940@prudhvisaiakhilthumu19404 жыл бұрын
  • Very good explanation

    @chamanthik6043@chamanthik60434 жыл бұрын
  • Thank you..Now I understand :)

    @ankitabhakat6963@ankitabhakat69632 жыл бұрын
  • Thnx a lot really helpful

    @ferozanibrahimi9703@ferozanibrahimi97033 жыл бұрын
  • Best explanation

    @freakinggal14@freakinggal1411 ай бұрын
  • 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

    @JaganGOUDMODEPU@JaganGOUDMODEPU3 жыл бұрын
  • Very helpful for beginers

    @taqdirsingh@taqdirsingh3 жыл бұрын
  • It was a very good video👌👌👏we want more videos that would explain more about modules👍

    @mohanbabu902@mohanbabu9022 жыл бұрын
    • Sure 👍

      @ValaxyTechnologies@ValaxyTechnologies2 жыл бұрын
  • 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.

    @Learn9Passion@Learn9Passion11 ай бұрын
  • Bro super explanation can u plz do full ansible course

    @ravivulla2523@ravivulla25233 жыл бұрын
  • very good explanation.

    @lakshmiweerawardena1698@lakshmiweerawardena16983 жыл бұрын
  • 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.

    @RameshM-pp2fq@RameshM-pp2fq4 жыл бұрын
    • 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

      @ValaxyTechnologies@ValaxyTechnologies4 жыл бұрын
  • 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 !!

    @joshvanathan1000@joshvanathan10004 жыл бұрын
    • Do take time to look around in our channel. All your questions are answered in the DevOps Playlist.

      @ValaxyTechnologies@ValaxyTechnologies4 жыл бұрын
    • To know more please join in our facebook group facebook.com/groups/valaxy.aws.devops.gang/

      @archananarayana6123@archananarayana61234 жыл бұрын
  • 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! 👍

    @srinathnaduvakkad4602@srinathnaduvakkad46024 жыл бұрын
    • wow, Why? Does the router have APIs? Do they have publicly available docs/SDK to support automation? What is the objective of this exercise?

      @ValaxyTechnologies@ValaxyTechnologies4 жыл бұрын
    • 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

      @porkodimuthusamy1062@porkodimuthusamy10624 жыл бұрын
  • nice and smooth

    @ranjitswain297@ranjitswain29711 ай бұрын
  • Very good thanks!

    @vincentdinenna4160@vincentdinenna41602 жыл бұрын
  • Great Video as always. #1000 like from me. :D

    @rushorahman@rushorahman3 жыл бұрын
  • Good class sir

    @priyarishaan7970@priyarishaan7970 Жыл бұрын
  • I need to install forticlient to 150 VMs. Can I use the same method to do that?

    @mehransaeed7207@mehransaeed7207 Жыл бұрын
  • Thanks a ton . Its helped a beginner like me to understand

    @nokiaamu@nokiaamu3 жыл бұрын
    • Your Welcome Amit! Glad to know that! :) Thank you for the review :)

      @ValaxyTechnologies@ValaxyTechnologies3 жыл бұрын
  • 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.

    @PSPKumanan@PSPKumanan4 жыл бұрын
    • Every day I watch at least one video of yours.

      @PSPKumanan@PSPKumanan4 жыл бұрын
    • We should introduce badges, rewarding your viewership!! Cheers!!!

      @ValaxyTechnologies@ValaxyTechnologies4 жыл бұрын
  • Good one

    @maheshkudumula9794@maheshkudumula97943 жыл бұрын
  • thank you very much

    @aloochan22@aloochan22 Жыл бұрын
  • if we want to do it for complete vpc how can we do it

    @karuprince2009@karuprince20092 жыл бұрын
  • how did u authenticated ec2 instance from ansible ? U just given host IP in hosts file.

    @shreyasb.s3819@shreyasb.s3819 Жыл бұрын
  • Very useful

    @DeepakKumar-uv5by@DeepakKumar-uv5by4 жыл бұрын
  • Can you explain how to move into the playbook directory while installing nginx package

    @ishwaryaishu109@ishwaryaishu109 Жыл бұрын
  • 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?

    @s.gardner7576@s.gardner7576 Жыл бұрын
  • Following ur videos regularly .....nice and clear explanation ......without missing any points.... Doing a great job Mr Shankar.....

    @rajeshmatta3197@rajeshmatta31974 жыл бұрын
    • Thanks. Join our facebook group to get in touch with us. fb.com/valaxytech

      @ValaxyTechnologies@ValaxyTechnologies4 жыл бұрын
  • Hi, can you please write ansible playbook to perform ssh login on remote host and then check for sudo access

    @sanaths4613@sanaths4613 Жыл бұрын
  • Very nice Explanation sir

    @pawannani6597@pawannani65974 жыл бұрын
    • You are welcome, Do Like, Share and Subscribe. If you are looking anything in specific add them here.

      @ValaxyTechnologies@ValaxyTechnologies4 жыл бұрын
  • Sir. Can we create hosts file with different name ??

    @aws-technology3495@aws-technology34952 жыл бұрын
  • Very nice explanation sir.

    @raghunandanyadav6415@raghunandanyadav64154 жыл бұрын
    • To know more please join in our facebook group facebook.com/groups/valaxy.aws.devops.gang/

      @archananarayana6123@archananarayana61234 жыл бұрын
  • Gud one

    @vasanthm7267@vasanthm72673 жыл бұрын
  • 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

    @johnfinny100@johnfinny1004 жыл бұрын
  • Explained very nicely I seen many Tutorials yours is one of the best keep doing

    @ala2ela373@ala2ela3732 жыл бұрын
    • Hi, Thanks for watching this video. Please subscribe to our KZhead channel.

      @ValaxyTechnologies@ValaxyTechnologies2 жыл бұрын
  • Nice one 👍

    @devidas90@devidas902 жыл бұрын
    • Thanks for the visit.

      @ValaxyTechnologies@ValaxyTechnologies2 жыл бұрын
  • Can you show one example to configure router

    @gunasekar7788@gunasekar7788 Жыл бұрын
  • Nice

    @rameshnyc6798@rameshnyc67982 жыл бұрын
  • Nice explanation

    @ishasharma2809@ishasharma28092 жыл бұрын
    • Thanks for liking. Keep watching !

      @ValaxyTechnologies@ValaxyTechnologies2 жыл бұрын
  • Could you record on session on Kubernetes Orch. (full life cycle of orchestration)

    @MrRanjitray@MrRanjitray4 жыл бұрын
    • To know more please join in our facebook group facebook.com/groups/valaxy.aws.devops.gang/

      @archananarayana6123@archananarayana61234 жыл бұрын
  • Thanks. my question is slight different to this topic, what is the difference between deployment only by Jenkins and deployment Jenkins+Ansible

    @gnadha123@gnadha1234 жыл бұрын
    • Incase if you want to install any softwares or packages in the deployment server you can do that right

      @ravirockyravindra8245@ravirockyravindra82454 жыл бұрын
  • Good explanation

    @luckypapanani3145@luckypapanani31452 жыл бұрын
    • Thanks and welcome

      @ValaxyTechnologies@ValaxyTechnologies2 жыл бұрын
  • not clear from which machine you are running playbook against which server you are installing Nginx, on which machine you modified sudoers file?

    @Bailey-in-austin@Bailey-in-austin2 жыл бұрын
  • Awesome..!!

    @arjunjangam5740@arjunjangam57402 ай бұрын
    • Thanks ✌️

      @ValaxyTechnologies@ValaxyTechnologies4 күн бұрын
  • Could you please add how to patch multiple windows servers using ansible in GUI mode.

    @vijays3828@vijays38284 жыл бұрын
    • You can have a look here - github.com/miztiik/Automated-Update-Management-in-AWS

      @ValaxyTechnologies@ValaxyTechnologies4 жыл бұрын
  • 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?

    @denizdengeliyorum@denizdengeliyorum4 жыл бұрын
    • 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

      @ValaxyTechnologies@ValaxyTechnologies3 жыл бұрын
  • 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??

    @prakashmalakar3284@prakashmalakar32844 жыл бұрын
    • Do tell us, what you have tried so far (pastebin maybe?) we can help you from there?

      @ValaxyTechnologies@ValaxyTechnologies4 жыл бұрын
  • help me out create yml script for mac brew packages

    @paulraj20022002@paulraj20022002 Жыл бұрын
  • Please make videos on Terraform and shell scripting

    @bharathkumar3040@bharathkumar30402 жыл бұрын
  • 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.

    @jaffarsd1547@jaffarsd15472 жыл бұрын
    • 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.

      @ValaxyTechnologies@ValaxyTechnologies2 жыл бұрын
  • How to write a playbook for creating 10 users in jenkins using Ansible?

    @tejav143@tejav1434 жыл бұрын
  • 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?

    @bhanubhanu1468@bhanubhanu1468 Жыл бұрын
  • Hi sir how to resolve the ,unreasonable, permissions denied (public key)

    @sureshts1086@sureshts10862 жыл бұрын
  • 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?

    @kushanchoudhury1942@kushanchoudhury19424 жыл бұрын
    • Do yourself a favor, Part 0 - Introduction to Linux in AWS : kzhead.info/sun/eNCfm5VwfHmofas/bejne.html Part 1 - Linux Commands for AWS: kzhead.info/sun/qtyknMNrf3ydqZs/bejne.html Part 2 - Linux Commands for AWS: kzhead.info/sun/gtuhaNR9o4uflIk/bejne.html Part 3 - Linux Commands for AWS: kzhead.info/sun/aZqJksZwkH6eoo0/bejne.html Part 4 - Linux Commands for AWS: kzhead.info/sun/hLiYld5-enSJknk/bejne.html More - kzhead.info/tools/_evcfxhjjui5hChhLE08tQ.htmlsearch?query=linux

      @ValaxyTechnologies@ValaxyTechnologies4 жыл бұрын
  • 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???

    @kavacham222@kavacham2223 жыл бұрын
    • 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.

      @aalzate@aalzate3 жыл бұрын
KZhead