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.
- I have ansible script which will collect IP of the server and store in a static file
- Now my need is to extract 1st IP from that file and do a SSH to that server and restart it.
- After successful restart and check the status of server validate with 200 response
- If success with 1st server then proceed with 2nd and so on.
Pls pls I need urgent help someone pls help me out.