After updating multiple servers I had a need to reboot them one by one. Main issue was to automate that, so the script would wait for the node to become reachable before rebooting next one. Here’s the simple one-liner for that: