should be close to this...but this is for windows...think if you put post_reboot_delay?
- name: DAG Node - Rebooting server Exchange has been updated, wait for MSExchangeADTopology service to come back to running until rebooting the next server. win_reboot: reboot_timeout: 3600 post_reboot_delay: 120 test_command: 'exit (Get-Service -Name MSExchangeADTopology).Status -ne "Running"' ignore_errors: yes when: (ClusterInfo.exists == True) and (ExchangeUpdate.exists == False) and ((inventory_hostname|upper).find('XU') == -1) or ('Reboot Required' in ServerReboot) On Thu, Mar 30, 2023 at 1:59 PM vinayak sawant <vinayak.sawan...@gmail.com> 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 ansible-project+unsubscr...@googlegroups.com. > 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2Brg-CdVe%3D6PQ9FRSu6K%2BcLYMCYo9y_jZymSfcgPRGNEwX7x2Q%40mail.gmail.com.