Ansible Automation | Operating System Patching for Multiple Linux Servers using Ansible

  Рет қаралды 80,840

Yogesh Mehta

Yogesh Mehta

Күн бұрын

Пікірлер: 110
@DavidA-xn6on
@DavidA-xn6on 5 жыл бұрын
Three years later this video remains "Magnifique"...Thank you...
@yogithakakarla1716
@yogithakakarla1716 3 жыл бұрын
Can we have this playbook available to download
@georgezviadgoglodze7810
@georgezviadgoglodze7810 7 жыл бұрын
really useful. good job Yogesh
@bhakta_rg
@bhakta_rg 5 жыл бұрын
Nice one. please give the link to the playbook. The link you posted asks for facebook password which is not good :(
@nishantbindal2403
@nishantbindal2403 2 жыл бұрын
@Yogesh - Thanks for the video. Coild you please check playbook link as it is not working. I would like to have this playbook for learning
@vasudevn4986
@vasudevn4986 8 жыл бұрын
Waav excellent video. Thank you so much for sharing it Yogesh...
@petrichor30
@petrichor30 7 жыл бұрын
Yogesh Patch management video is really superb, expecting more videos from you.One clarification how spacewalk is used with Ansible for patch management. Similarly kindly upload video explaining of Ansible components from scratch
@anilreddyk2618
@anilreddyk2618 2 жыл бұрын
Hi yogesh. How can we do patching of aws windows machine using ansible playbook
@TMD21Apr09
@TMD21Apr09 3 жыл бұрын
Awesome demo, thank you so much bro!
@gmssvideos
@gmssvideos 5 жыл бұрын
How to export all servers result in to a file. To check whether they got reboot or not during patching time
@YogeshMehta
@YogeshMehta 5 жыл бұрын
Hello Mohan, I would get results/logs written to a file and grab the required info.
@78damara
@78damara 2 жыл бұрын
Thank you very much Yogesh Mehta. Could you please share the playbook under introduction because many people don't have Facebook account. thank you sir
@smartkids2022
@smartkids2022 4 жыл бұрын
Thanks for sharing this video Yogesh. it's really great and very helpful.
@Harshitgupta-qw2yc
@Harshitgupta-qw2yc 6 ай бұрын
Please share the playbook as well..
@tsrinath
@tsrinath 6 жыл бұрын
Hi yogesh, how to execute remote commands using ansible-playbook command suppose I have a inventory file and wanted to execute date and cat /etc/redhat-release commands and get the output in a shell
@YogeshMehta
@YogeshMehta 6 жыл бұрын
Hi Srinath, I will say use adhoc command for that task. # ansible -i host.ini all -m shell -a “cat /etc/redhat-release”
@kaustubhdhavale5294
@kaustubhdhavale5294 5 жыл бұрын
Thank you so much Yogesh. Video is really helpful.
@YogeshMehta
@YogeshMehta 5 жыл бұрын
Thanks for the feedback
@suraqazaheer8041
@suraqazaheer8041 4 жыл бұрын
This is great ! Thank you Yogesh.
@Emily-fm3no
@Emily-fm3no 5 жыл бұрын
sir i run ur playbook it seems my one node only but my node not get reboot & not get update..can u pls help me .. Thanks advance
@YogeshMehta
@YogeshMehta 5 жыл бұрын
You can run ansibke in verbose mode -vvv and it will give you details
@kanhaiyaa515
@kanhaiyaa515 6 жыл бұрын
@Yogesh Mehta The provided playbook link is broken... Please can you help with the playbook. I am an explorer in the field and want to try this script for myself.
@TMD21Apr09
@TMD21Apr09 3 жыл бұрын
I too am looking for it
@mdshahidjamal
@mdshahidjamal 6 жыл бұрын
Thank you Yogesh! it's realy usefull.
@GO-AHEAD-LIVE
@GO-AHEAD-LIVE 7 жыл бұрын
HOW CAN I INTEGRATING ANSIBLE TOWER WITH LDAP / ACTIVE DIRECTORY (VERSION TOWER 3.1.5) ?
@keshavpratapsingh6312
@keshavpratapsingh6312 3 жыл бұрын
love you sir for your work..amazing stuff
@3strings257
@3strings257 4 жыл бұрын
What if I am not connected to the internet and I want to patch or upgrade the kernel offline
@YogeshMehta
@YogeshMehta 4 жыл бұрын
You may use your local repository servers in that case.
@lijinpp6717
@lijinpp6717 5 жыл бұрын
Thank you Yogesh, could you please comment, if we need to monitor the patching progress, which module needs to be added? no update on the yum.log on the management host ile when we apply the patches
@YogeshMehta
@YogeshMehta 5 жыл бұрын
That’s really good question. The playbook I shared is very basic and doesn’t capture real production scenarios. You may refer to system logs for the progress
@AntiPakistani
@AntiPakistani 7 жыл бұрын
Hi Yogesh, You're only checking running instance of apache/httpd, how about database process? Awaiting for your reply. Thanks in advance - Suresh
@YogeshMehta
@YogeshMehta 7 жыл бұрын
Suresh Bichhali suggest to watchvideo completely. Httpd is just and example, you can put any process in grep
@immastimaker
@immastimaker 3 жыл бұрын
Hi Yogesh, Thanks for the wonderful video about patching through Ansible. But how do I roll back the patching in the playbook. Can you please guide on this.
@YogeshMehta
@YogeshMehta 3 жыл бұрын
Hi Prasad, easiest and quickest way to rollback will be reverting back to pre patching snapshots.
@SukhwinderSingh-dm3bm
@SukhwinderSingh-dm3bm 6 жыл бұрын
excellent video. Thank you so much for sharing it Yogesh
@jamesbowman9867
@jamesbowman9867 3 жыл бұрын
It was a very good video. Excellent!
@kanhaiyaashtekar7185
@kanhaiyaashtekar7185 6 жыл бұрын
This page is not available! Sir please provide link for the patch script.
@reethanarkaniselvaraj21
@reethanarkaniselvaraj21 8 жыл бұрын
Could you please share the OS-Patching Ansible playbook
@YogeshMehta
@YogeshMehta 8 жыл бұрын
playbook link is in the notes section .. facebook.com/download/preview/588448994612918
@chandrashekharsingh7252
@chandrashekharsingh7252 3 жыл бұрын
Pls share play book
@navyak7036
@navyak7036 4 жыл бұрын
Hi , Do you also help with windows patch installation through automation or can you redirect me to the correct place. Thanks
@vjj6258
@vjj6258 2 жыл бұрын
It was really helpful, how can we setup SSH connection between 100s of server, is there any automated way or manually we have to do?
@mastpraskum
@mastpraskum 4 жыл бұрын
Kindly suggest a open-source patching management tool for RHEL. I ve subscriptions for RHEL but don't want to expend money on satellite/smart management tool from RHEL.
@YogeshMehta
@YogeshMehta 4 жыл бұрын
You may explore spacewalk . spacewalkproject.github.io
@narasimhakoundinyavasapura1313
@narasimhakoundinyavasapura1313 3 жыл бұрын
Hi Yogesh...thanks for the explanation. This is really very nice I'm very new to this ansible playbook. After watching this video I have grabbed a lot of things on this playbook. Using multiple conditional statements. This helped to analyze more how to write a playbook. If you don't mind could please share me link of that play book where I can download it. The Facebook link is not working which is there in the description. Though this is a time taking, could you share that one for me. Thanks and Regards
@trueview6559
@trueview6559 4 жыл бұрын
Can any share the script
@strikermdd
@strikermdd 7 жыл бұрын
Link for Playbook not working for me at least.
@rajuteja7837
@rajuteja7837 2 жыл бұрын
The Facebook isn't working
@kubeon7546
@kubeon7546 2 жыл бұрын
Please add that ansible code into git repo and share that
@amitsarudkar7198
@amitsarudkar7198 5 жыл бұрын
Superb Video. Yogesh, please can you share this playbook.
@YogeshMehta
@YogeshMehta 5 жыл бұрын
Thanks Amit, unfortunately I don’t have Git repo. I would write it at my own to get understanding on the YAML formatting and get more familiarity with ansible.
@madhukarreddy6879
@madhukarreddy6879 4 жыл бұрын
Awesome man.
@tusharkapoor2963
@tusharkapoor2963 3 жыл бұрын
Hi Yogesh, Its a nice video. But one questions here we need to stop and start the apps on the servers manually, can't we stop and start the apps through this same play book or can write diff one for that. Please tell.
@237311
@237311 Жыл бұрын
Useful video. Can this be used for patching MacOS?
@Kiki_Terrene
@Kiki_Terrene 7 жыл бұрын
All the videos are really helpful !! How we can make 1000 of server as ssh less before running playbook to those 1000 of server,Manually it will be difficult to generate and copy key on 1000 server
@channangealve2304
@channangealve2304 4 жыл бұрын
Very good video. Please let me know how to build like your test environment. Also, can you use this in Windows patching?
@reethanarkaniselvaraj21
@reethanarkaniselvaraj21 8 жыл бұрын
WOW.. Nice REally Good Video
@nonyagbo
@nonyagbo 5 жыл бұрын
thanks so much - please if you don't mind - please share the playbook again may be using git ... and thank you
@YogeshMehta
@YogeshMehta 5 жыл бұрын
Thanks, unfortunately I don’t have Git repo. I would write it at my own to get understanding on the YAML formatting and get more familiarity with ansible.
@coolboy8636
@coolboy8636 8 жыл бұрын
Thanks for such a nice video, it is very neatly described and easy to understand. If you can put Chef video as well, that would be great.
@YogeshMehta
@YogeshMehta 8 жыл бұрын
thanks coolboy, stay tuned to channel,will add videos on chef in future.
@coolboy8636
@coolboy8636 8 жыл бұрын
Thank you..
@YogeshMehta
@YogeshMehta 8 жыл бұрын
coolboy8636 pleasure for me , if these videos helped you.
@msurendarsuren
@msurendarsuren 5 жыл бұрын
Your video is awesome, can you please share the playbook ? The link which is with the video is no longer working.
@YogeshMehta
@YogeshMehta 5 жыл бұрын
Plabook is here lookaside.fbsbx.com/file/Ansible%20Patching%20Playbook.txt?token=AWzIYFSt0LeM6xh8438rQzFzZELlYkQPbvFswCPKAGcJi2--Dhp6BM_9KF4Frmp-jWl35zpW6Fj-e8Fqro2FTh_CRe7ALMOTbhdJzpUUyZYsusF-x19MlMGQFc6GDHzx7zCL93A88vVrUo4B3W8rEZ0xI5GAsmRdvZD6F774bpqB5A
@bsanders
@bsanders 7 жыл бұрын
Great video. Some package updates will require some (or many) processes to be restarted, but your reboot check is only for kernel updates. We reboot when either 1) the latest installed kernel does not equal the running kernel, OR 2) when "needs-restarting" returns > 0 status. This check will return a zero if the system does not need a reboot: [[ `rpm -q --last kernel | perl -pe 's/^kernel-(\\S+).*/$1/' | head -1` = `uname -r` ]] && /usr/bin/needs-restarting
@YogeshMehta
@YogeshMehta 7 жыл бұрын
thanks Bret, I agree with you..
@SK_Maurya222
@SK_Maurya222 7 жыл бұрын
Hi Yogesh, What is the meaning of "Serial:2" ?
@YogeshMehta
@YogeshMehta 7 жыл бұрын
Hi Suneel, Serial means anisble with attempt the action on the target machines in the serially, instead of the default parallel mode. This is for the rolling updates. Refer the below link for the detailed info. docs.ansible.com/ansible/latest/playbooks_delegation.html Regards, Yogesh
@SK_Maurya222
@SK_Maurya222 7 жыл бұрын
Thanks :)
@RamaKrishna-ud6pu
@RamaKrishna-ud6pu 7 жыл бұрын
please provide a demo on using satellite server and ansible for server build automation and config managements of server.
@Husbn62063
@Husbn62063 8 жыл бұрын
Any chance you can put videos on saltstack please Yogesh? Thanks in advance!
@YogeshMehta
@YogeshMehta 8 жыл бұрын
Refer below videos on Salt SSH basics kzbin.info/www/bejne/l4XLaIKhjLljp9k kzbin.info/www/bejne/nX_PhJd7aamJq5Y
@Husbn62063
@Husbn62063 8 жыл бұрын
Yogesh Mehta awesome thank you 🙏🏼🙏🏼
@BalaSubramani-pf3rb
@BalaSubramani-pf3rb 7 жыл бұрын
Hi Yogesh, While running the same play book in my test server. I got the below issue, I tried it in google but i am not getting the proper result. Cloud you please help me to resolve the issue. TASK [decision point to stop patching] ***************************************** fatal: [192.168.50.102]: FAILED! => {"changed": false, "failed": true, "msg": "192.168.50.102 have NOT running Application."} to retry, use: --limit @/etc/ansible/Practical/Service.retry PLAY RECAP ********************************************************************* 192.168.50.102 : ok=2 changed=1 unreachable=0 failed=1
@georgei.8734
@georgei.8734 8 жыл бұрын
Exellente video, do you have any video about install Ansible?
@YogeshMehta
@YogeshMehta 8 жыл бұрын
thanks for feedback. yes please watch below playlist for Ansible installation and configuration. kzbin.info/aero/PLLsor6GJ_BEEDCsQ0ZpfrdfOMjKNTIxtO
@scottfactory756
@scottfactory756 7 жыл бұрын
+Yogesh Mehta hi could you please give a tutorial on ansible and rundeck setup for large environments
@MrHanSoL0
@MrHanSoL0 3 жыл бұрын
Great and very useful thank you 👏
@mariadasuthummalapalli7222
@mariadasuthummalapalli7222 3 жыл бұрын
I could download it
@valpro99
@valpro99 4 жыл бұрын
Excellent video.
@jean-hilaireyapi295
@jean-hilaireyapi295 4 жыл бұрын
Hi Yogesh, Thank you for these very helpful tutorials. how can we get the files in your demos ? Ôlè
@salmanzafar1949
@salmanzafar1949 2 жыл бұрын
It’s very nice vedio , can you make some more vedios of ansible playbook for migration VM or bare metal to Aws cloud. Also can you make play book for data migration?
@lakkireddysrinivasareddy6689
@lakkireddysrinivasareddy6689 7 жыл бұрын
It's very good session, thanks for this video. My question is if we have multiple servers and want to update kernel on 3 machines at a time and if it is success on these machines then only it will move to next 3 machines and update kernel and so.on. Is this possible using Ansible, if yes please share me details it will be very helpful to me. Thank you.
@VijayIT_Hub
@VijayIT_Hub 4 жыл бұрын
With the help of serial keyword in ansible we can achieve this .. Give serial =3 in yaml file
@chandrashekharsingh7252
@chandrashekharsingh7252 3 жыл бұрын
And pls share create nginx server play book
@sampadpradhan4244
@sampadpradhan4244 5 жыл бұрын
Wonderful.....thank you sir..
@salmanzafar1949
@salmanzafar1949 2 жыл бұрын
It was nice vedio, can you make vedio of play book for VM/ bare metal migration to Aws, also data migration
@tsrinath
@tsrinath 7 жыл бұрын
Hi Yogesh, Nice Video, good informative I have a requirement, I have few set of servers where we have to patch each sever differently, like 1 server is having 10 patches, 2server is having 15 patches, .. is there any possiblity that we can update patches dynamically
@YogeshMehta
@YogeshMehta 7 жыл бұрын
+srinath t yes Srinath, you can use group and host variables for your requirement.
@mallikarjunareddy6048
@mallikarjunareddy6048 6 жыл бұрын
Hi Yogesh! Hope you are doing good! How these systems will get updated when you run playbook? are the systems subscribed to redhat satelite server or from redhat subscribed channels or how? Could you please update me asap Thanks in Advance Mallikarjuna Reddy
@YogeshMehta
@YogeshMehta 6 жыл бұрын
Hello, Clients systems are subscribed to CentOS channels. Regards, Yogesh
@sunilachare2401
@sunilachare2401 3 жыл бұрын
Very Good Video liket it
@KUMBAM
@KUMBAM 4 жыл бұрын
Thanks buddy
@sarfarazansari501
@sarfarazansari501 2 жыл бұрын
Thanks alot 👍
@msuresh6053
@msuresh6053 6 жыл бұрын
That's so kind of you . if you don't mind could you please make a video on ssh check on remote hosts . mainly how to automate using script . -^- -^-
@Harshitgupta-qw2yc
@Harshitgupta-qw2yc 6 ай бұрын
Thanks sir
@balanaresh8506
@balanaresh8506 7 жыл бұрын
Thanks
@rajuteja7837
@rajuteja7837 2 жыл бұрын
Can we have this playbook available to download
Ansible Automation | Ansible Roles, Templates and Tags
23:45
Yogesh Mehta
Рет қаралды 68 М.
Manage Windows like Linux with Ansible
41:39
Red Hat Summit
Рет қаралды 103 М.
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Linux OS Patching Using Ansible | #AnsibleRealLife | techbeatly
1:16:00
Installing Ansible AWX
31:18
Calvin Remsburg
Рет қаралды 39 М.
Mastering Ansible | Create Playbooks for Updating Linux Servers
25:34
Ansible Roles - Understanding Ansible Roles
28:57
networknutsdotnet
Рет қаралды 103 М.
Ansible Automation | Ansible Adhoc Commands and Configuration
26:05
Simple automation for all your Linux servers with Ansible
26:00
Christian Lempa
Рет қаралды 74 М.
Making Simple Graphical Linux Distro from Scratch
17:19
Nir Lichtman
Рет қаралды 71 М.
Ansible Patching and Compliance Automation
11:30
Alex Dworjan
Рет қаралды 9 М.
Ansible Automation | Performing User Management using Ansible
18:50
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН