e648f0af71846dc2719a194865f42dafef8ac786
[noc.git] / ansible / roles / reboot-and-wait / tasks / main.yml
1 - name: reboot machine
2   shell: sleep 2 && shutdown -r now
3   async: 1
4   poll: 0
5   ignore_errors: true
6
7 - name: waiting for host to come back
8   wait_for_connection:
9     delay: "{{ reboot_delay }}"
10     timeout: "{{ reboot_timeout }}"