Ansible script for rolling restart of servers

Hi All,
I am complete new with yaml script. I need somebody’s help here.
I want to develop a ansible script which will do rolling restart of servers.
Requirement:

  1. I have ansible script which will collect IP of the server and store in a static file
  2. Now my need is to extract 1st IP from that file and do a SSH to that server and restart it.
  3. After successful restart and check the status of server validate with 200 response
  4. If success with 1st server then proceed with 2nd and so on.

Pls pls I need urgent help someone pls help me out.

Hi @swagat777 ,

This post was moved to a different board that fits your topic of discussion a bit better. This means you’ll get better engagement on your post, and it keeps our Community organized so users can more easily find information.

As you’ll notice, your Topic is now in the Project Development Help board. No action is needed on your part; you can continue the conversation as normal here.

Let me know if you have any other questions or if I can help with anything else.

Cheers!

Can someone take a look and help me please

Thanks for being part of the GitHub Community Forum. We’re glad you’re here.

I wanted to jump in here and mention that “bumping”, in general, is frowned upon. The reason why is that the forum is for people to discuss what they are interested in related to GitHub and general deveopment. If you’re bumping something, then it means that for whatever reason you’re trying to get people to talk about something that they may not want to talk about. Please see our Code of Conduct for further guidance.

That said, if you have relevant, new information that you’d like to update a thread with, that’s fine. But bumping something just to try to get it to populate higher in search results is not allowed. If this particular thread gets bumped again, we’ll have to lock it from further replies.

Thanks and best of luck!