github.com/imran-kn/cilium-fork@v1.6.9/contrib/ansible/roles/reboot/tasks/main.yml (about)

     1  ---
     2  
     3  - name: Restart machine
     4    shell: sleep 2 && shutdown -r now "rebooting ..."
     5    async: 1
     6    poll: 0
     7    ignore_errors: yes
     8  
     9  - name: Waiting for machine to come back up
    10    local_action: wait_for host={{ inventory_hostname }} state=started delay=10 timeout=30 connect_timeout=15
    11    sudo: false