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

Поделиться
HTML-код
  • Опубликовано: 26 окт 2024
  • НаукаНаука

Комментарии • 110

  • @DavidA-xn6on
    @DavidA-xn6on 5 лет назад +13

    Three years later this video remains "Magnifique"...Thank you...

  • @TMD21Apr09
    @TMD21Apr09 3 года назад +1

    Awesome demo, thank you so much bro!

  • @petrichor30
    @petrichor30 7 лет назад +2

    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

  • @georgezviadgoglodze7810
    @georgezviadgoglodze7810 7 лет назад +2

    really useful. good job Yogesh

  • @bhakta_rg
    @bhakta_rg 5 лет назад +8

    Nice one. please give the link to the playbook. The link you posted asks for facebook password which is not good :(

  • @vasudevn4986
    @vasudevn4986 7 лет назад +2

    Waav excellent video. Thank you so much for sharing it Yogesh...

  • @mdshahidjamal
    @mdshahidjamal 6 лет назад +2

    Thank you Yogesh! it's realy usefull.

  • @suraqazaheer8041
    @suraqazaheer8041 4 года назад

    This is great ! Thank you Yogesh.

  • @narasimhakoundinyavasapura1313
    @narasimhakoundinyavasapura1313 3 года назад +2

    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

  • @kaustubhdhavale5294
    @kaustubhdhavale5294 5 лет назад +1

    Thank you so much Yogesh. Video is really helpful.

  • @smartkids2022
    @smartkids2022 4 года назад

    Thanks for sharing this video Yogesh. it's really great and very helpful.

  • @78damara
    @78damara 2 года назад +1

    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

  • @jamesbowman9867
    @jamesbowman9867 3 года назад

    It was a very good video. Excellent!

  • @keshavpratapsingh6312
    @keshavpratapsingh6312 3 года назад

    love you sir for your work..amazing stuff

  • @SukhwinderSingh-dm3bm
    @SukhwinderSingh-dm3bm 5 лет назад

    excellent video. Thank you so much for sharing it Yogesh

  • @madhukarreddy6879
    @madhukarreddy6879 4 года назад +1

    Awesome man.

  • @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

  • @reethanarkaniselvaraj21
    @reethanarkaniselvaraj21 7 лет назад +1

    WOW.. Nice REally Good Video

  • @yogithakakarla1716
    @yogithakakarla1716 3 года назад +1

    Can we have this playbook available to download

  • @237311
    @237311 Год назад

    Useful video. Can this be used for patching MacOS?

  • @sunilachare2401
    @sunilachare2401 3 года назад +1

    Very Good Video liket it

  • @MrHanSoL0
    @MrHanSoL0 2 года назад

    Great and very useful thank you 👏

  • @coolboy8636
    @coolboy8636 7 лет назад +1

    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  7 лет назад

      thanks coolboy, stay tuned to channel,will add videos on chef in future.

    • @coolboy8636
      @coolboy8636 7 лет назад

      Thank you..

    • @YogeshMehta
      @YogeshMehta  7 лет назад

      coolboy8636 pleasure for me , if these videos helped you.

  • @kanhaiyaa515
    @kanhaiyaa515 6 лет назад +1

    @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

  • @anilreddyk2618
    @anilreddyk2618 2 года назад

    Hi yogesh. How can we do patching of aws windows machine using ansible playbook

  • @immastimaker
    @immastimaker 3 года назад +1

    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.

  • @amitsarudkar7198
    @amitsarudkar7198 5 лет назад +1

    Superb Video. Yogesh, please can you share this playbook.

    • @YogeshMehta
      @YogeshMehta  4 года назад

      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.

  • @valpro99
    @valpro99 4 года назад

    Excellent video.

  • @tusharkapoor2963
    @tusharkapoor2963 2 года назад

    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.

  • @Harshitgupta-qw2yc
    @Harshitgupta-qw2yc 3 месяца назад

    Please share the playbook as well..

  • @bsanders
    @bsanders 6 лет назад

    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  6 лет назад

      thanks Bret, I agree with you..

  • @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?

  • @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?

  • @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?

  • @Kiki_Terrene
    @Kiki_Terrene 6 лет назад +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

  • @sampadpradhan4244
    @sampadpradhan4244 4 года назад

    Wonderful.....thank you sir..

  • @gmssvideos
    @gmssvideos 4 года назад +1

    How to export all servers result in to a file. To check whether they got reboot or not during patching time

    • @YogeshMehta
      @YogeshMehta  4 года назад

      Hello Mohan, I would get results/logs written to a file and grab the required info.

  • @AntiPakistani
    @AntiPakistani 7 лет назад +1

    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

  • @tsrinath
    @tsrinath 6 лет назад +1

    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 лет назад +1

      Hi Srinath, I will say use adhoc command for that task.
      # ansible -i host.ini all -m shell -a “cat /etc/redhat-release”

  • @sarfarazansari501
    @sarfarazansari501 Год назад

    Thanks alot 👍

  • @lijinpp6717
    @lijinpp6717 4 года назад +1

    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  4 года назад

      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

  • @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

  • @Emily-fm3no
    @Emily-fm3no 5 лет назад +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

    • @YogeshMehta
      @YogeshMehta  5 лет назад

      You can run ansibke in verbose mode -vvv and it will give you details

  • @salmanzafar1949
    @salmanzafar1949 2 года назад

    It was nice vedio, can you make vedio of play book for VM/ bare metal migration to Aws, also data migration

  • @GO-AHEAD-LIVE
    @GO-AHEAD-LIVE 7 лет назад

    HOW CAN I INTEGRATING ANSIBLE TOWER WITH LDAP / ACTIVE DIRECTORY (VERSION TOWER 3.1.5) ?

  • @georgei.8734
    @georgei.8734 7 лет назад +1

    Exellente video, do you have any video about install Ansible?

    • @YogeshMehta
      @YogeshMehta  7 лет назад

      thanks for feedback. yes please watch below playlist for Ansible installation and configuration.
      ruclips.net/p/PLLsor6GJ_BEEDCsQ0ZpfrdfOMjKNTIxtO

    • @scottfactory756
      @scottfactory756 7 лет назад

      +Yogesh Mehta hi could you please give a tutorial on ansible and rundeck setup for large environments

  • @KUMBAM
    @KUMBAM 4 года назад

    Thanks buddy

  • @nonyagbo
    @nonyagbo 5 лет назад +1

    thanks so much - please if you don't mind - please share the playbook again may be using git ... and thank you

    • @YogeshMehta
      @YogeshMehta  4 года назад

      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.

  • @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  3 года назад +1

      You may explore spacewalk . spacewalkproject.github.io

  • @kanhaiyaashtekar7185
    @kanhaiyaashtekar7185 6 лет назад

    This page is not available! Sir please provide link for the patch script.

  • @Harshitgupta-qw2yc
    @Harshitgupta-qw2yc 3 месяца назад

    Thanks sir

  • @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

  • @RamaKrishna-ud6pu
    @RamaKrishna-ud6pu 7 лет назад +5

    please provide a demo on using satellite server and ansible for server build automation and config managements of server.

  • @jean-hilaireyapi295
    @jean-hilaireyapi295 4 года назад

    Hi Yogesh,
    Thank you for these very helpful tutorials.
    how can we get the files in your demos ?
    Ôlè

  • @strikermdd
    @strikermdd 6 лет назад

    Link for Playbook not working for me at least.

  • @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.

  • @navyak7036
    @navyak7036 4 года назад

    Hi , Do you also help with windows patch installation through automation or can you redirect me to the correct place. Thanks

  • @reethanarkaniselvaraj21
    @reethanarkaniselvaraj21 7 лет назад +1

    Could you please share the OS-Patching Ansible playbook

    • @YogeshMehta
      @YogeshMehta  7 лет назад

      playbook link is in the notes section ..
      facebook.com/download/preview/588448994612918

  • @3strings257
    @3strings257 4 года назад

    What if I am not connected to the internet and I want to patch or upgrade the kernel offline

    • @YogeshMehta
      @YogeshMehta  3 года назад

      You may use your local repository servers in that case.

  • @mallikarjunareddy6048
    @mallikarjunareddy6048 5 лет назад

    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  5 лет назад

      Hello,
      Clients systems are subscribed to CentOS channels.
      Regards,
      Yogesh

  • @rajuteja7837
    @rajuteja7837 2 года назад

    The Facebook isn't working

  • @Husbn62063
    @Husbn62063 7 лет назад +1

    Any chance you can put videos on saltstack please Yogesh? Thanks in advance!

    • @YogeshMehta
      @YogeshMehta  7 лет назад

      Refer below videos on Salt SSH basics
      ruclips.net/video/aTh7OkWT0qw/видео.html
      ruclips.net/video/gNlSdE4DVu4/видео.html

    • @Husbn62063
      @Husbn62063 7 лет назад

      Yogesh Mehta awesome thank you 🙏🏼🙏🏼

  • @SK_Maurya222
    @SK_Maurya222 7 лет назад +1

    Hi Yogesh,
    What is the meaning of "Serial:2" ?

    • @YogeshMehta
      @YogeshMehta  7 лет назад +1

      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 :)

  • @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 года назад

    Pls share play book

  • @trueview6559
    @trueview6559 4 года назад +1

    Can any share the script

  • @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 . -^- -^-

  • @kubeon7546
    @kubeon7546 2 года назад

    Please add that ansible code into git repo and share that

  • @mariadasuthummalapalli7222
    @mariadasuthummalapalli7222 3 года назад +1

    I could download it

  • @balanaresh8506
    @balanaresh8506 6 лет назад

    Thanks

  • @chandrashekharsingh7252
    @chandrashekharsingh7252 3 года назад

    And pls share create nginx server play book

  • @rajuteja7837
    @rajuteja7837 2 года назад

    Can we have this playbook available to download