Thanks Deepanjan. But here is how I can be sure my server is up or not.
If my server is not up then it will not work right i had tried seconds from setup module but it did not work So is there any other option to perform this task as i have to reboot server one by one not all at time. Serial module is working for this but unable to wait for 3 min of uptime of server to restart another server. *Kind Regards* *Vinayak Sawant* On Mon, Apr 3, 2023 at 11:15 AM Deepanjan Acharya <[email protected]> wrote: > You could use a sleep task between this two tasks and assign 120sec sleep > time. > > Example: using builtin wait module > > - name: Sleep for 300 seconds and continue with play > ansible.builtin.wait_for: timeout: 300 delegate_to: localhost > > Other wise you can use shell module and use command “sleep 300”. > > > > > On Thu, 30 Mar 2023 at 11:29 PM, vinayak sawant < > [email protected]> wrote: > >> Hello Team >> >> i am doing rolling restart for servers and it is working fine but what i >> need to add is when first server is rebooted and its up for 2 minutes then >> it should go for next server for reboot >> >> So how can I take that uptime condition with shell in ansible playbook to >> proceed. >> >> *Kind Regards* >> >> *Vinayak Sawant* >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ansible Project" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/CAM5Hc_jRPxG41%2BsfTFwm7mX-J1tLSzACBrG%3D5qbwg7QXgqqHBQ%40mail.gmail.com >> <https://groups.google.com/d/msgid/ansible-project/CAM5Hc_jRPxG41%2BsfTFwm7mX-J1tLSzACBrG%3D5qbwg7QXgqqHBQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAM5Hc_i6H7-jgtso0%3DTtUz2vUg5XSuGCdexnycftTgqb%2BZ4Pwg%40mail.gmail.com.
