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
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
@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.
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, 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 very much Yogesh Mehta. Could you please share the playbook under introduction because many people don't have Facebook account. thank you sir
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 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
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.
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
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.
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 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
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
Plabook is here lookaside.fbsbx.com/file/Ansible%20Patching%20Playbook.txt?token=AWzIYFSt0LeM6xh8438rQzFzZELlYkQPbvFswCPKAGcJi2--Dhp6BM_9KF4Frmp-jWl35zpW6Fj-e8Fqro2FTh_CRe7ALMOTbhdJzpUUyZYsusF-x19MlMGQFc6GDHzx7zCL93A88vVrUo4B3W8rEZ0xI5GAsmRdvZD6F774bpqB5A
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, 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
Refer below videos on Salt SSH basics ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-aTh7OkWT0qw.html ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-gNlSdE4DVu4.html
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'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.
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.