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
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
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
@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.
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.
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.
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.
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
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?
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
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
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
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
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
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.
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.
Plabook is here lookaside.fbsbx.com/file/Ansible%20Patching%20Playbook.txt?token=AWzIYFSt0LeM6xh8438rQzFzZELlYkQPbvFswCPKAGcJi2--Dhp6BM_9KF4Frmp-jWl35zpW6Fj-e8Fqro2FTh_CRe7ALMOTbhdJzpUUyZYsusF-x19MlMGQFc6GDHzx7zCL93A88vVrUo4B3W8rEZ0xI5GAsmRdvZD6F774bpqB5A
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
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
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
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.
Three years later this video remains "Magnifique"...Thank you...
Awesome demo, thank you so much bro!
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
really useful. good job Yogesh
Nice one. please give the link to the playbook. The link you posted asks for facebook password which is not good :(
Waav excellent video. Thank you so much for sharing it Yogesh...
Thank you Yogesh! it's realy usefull.
This is great ! Thank you Yogesh.
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
Thank you so much Yogesh. Video is really helpful.
Thanks for the feedback
Thanks for sharing this video Yogesh. it's really great and very helpful.
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
It was a very good video. Excellent!
love you sir for your work..amazing stuff
excellent video. Thank you so much for sharing it Yogesh
Awesome man.
@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
WOW.. Nice REally Good Video
Can we have this playbook available to download
Useful video. Can this be used for patching MacOS?
Very Good Video liket it
Great and very useful thank you 👏
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.
thanks coolboy, stay tuned to channel,will add videos on chef in future.
Thank you..
coolboy8636 pleasure for me , if these videos helped you.
@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.
I too am looking for it
Hi yogesh. How can we do patching of aws windows machine using ansible playbook
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.
Hi Prasad, easiest and quickest way to rollback will be reverting back to pre patching snapshots.
Superb Video. Yogesh, please can you share this playbook.
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.
Excellent video.
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.
Please share the playbook as well..
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
thanks Bret, I agree with you..
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?
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?
Very good video. Please let me know how to build like your test environment. Also, can you use this in Windows patching?
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
Wonderful.....thank you sir..
How to export all servers result in to a file. To check whether they got reboot or not during patching time
Hello Mohan, I would get results/logs written to a file and grab the required info.
Hi Yogesh,
You're only checking running instance of apache/httpd, how about database process?
Awaiting for your reply.
Thanks in advance
- Suresh
Suresh Bichhali suggest to watchvideo completely. Httpd is just and example, you can put any process in grep
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
Hi Srinath, I will say use adhoc command for that task.
# ansible -i host.ini all -m shell -a “cat /etc/redhat-release”
Thanks alot 👍
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
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
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
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
You can run ansibke in verbose mode -vvv and it will give you details
It was nice vedio, can you make vedio of play book for VM/ bare metal migration to Aws, also data migration
HOW CAN I INTEGRATING ANSIBLE TOWER WITH LDAP / ACTIVE DIRECTORY (VERSION TOWER 3.1.5) ?
Exellente video, do you have any video about install Ansible?
thanks for feedback. yes please watch below playlist for Ansible installation and configuration.
ruclips.net/p/PLLsor6GJ_BEEDCsQ0ZpfrdfOMjKNTIxtO
+Yogesh Mehta hi could you please give a tutorial on ansible and rundeck setup for large environments
Thanks buddy
thanks so much - please if you don't mind - please share the playbook again may be using git ... and thank you
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.
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.
You may explore spacewalk . spacewalkproject.github.io
This page is not available! Sir please provide link for the patch script.
Thanks sir
Your video is awesome, can you please share the playbook ? The link which is with the video is no longer working.
Plabook is here lookaside.fbsbx.com/file/Ansible%20Patching%20Playbook.txt?token=AWzIYFSt0LeM6xh8438rQzFzZELlYkQPbvFswCPKAGcJi2--Dhp6BM_9KF4Frmp-jWl35zpW6Fj-e8Fqro2FTh_CRe7ALMOTbhdJzpUUyZYsusF-x19MlMGQFc6GDHzx7zCL93A88vVrUo4B3W8rEZ0xI5GAsmRdvZD6F774bpqB5A
please provide a demo on using satellite server and ansible for server build automation and config managements of server.
Hi Yogesh,
Thank you for these very helpful tutorials.
how can we get the files in your demos ?
Ôlè
Link for Playbook not working for me at least.
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
+srinath t yes Srinath, you can use group and host variables for your requirement.
Hi , Do you also help with windows patch installation through automation or can you redirect me to the correct place. Thanks
Could you please share the OS-Patching Ansible playbook
playbook link is in the notes section ..
facebook.com/download/preview/588448994612918
What if I am not connected to the internet and I want to patch or upgrade the kernel offline
You may use your local repository servers in that case.
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
Hello,
Clients systems are subscribed to CentOS channels.
Regards,
Yogesh
The Facebook isn't working
Any chance you can put videos on saltstack please Yogesh? Thanks in advance!
Refer below videos on Salt SSH basics
ruclips.net/video/aTh7OkWT0qw/видео.html
ruclips.net/video/gNlSdE4DVu4/видео.html
Yogesh Mehta awesome thank you 🙏🏼🙏🏼
Hi Yogesh,
What is the meaning of "Serial:2" ?
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
Thanks :)
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.
With the help of serial keyword in ansible we can achieve this .. Give serial =3 in yaml file
Pls share play book
Can any share the script
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 . -^- -^-
Please add that ansible code into git repo and share that
I could download it
Thanks
And pls share create nginx server play book
Can we have this playbook available to download