summaryrefslogtreecommitdiff
path: root/roles/reboot-and-wait/tasks/main.yml
blob: e648f0af71846dc2719a194865f42dafef8ac786 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
- name: reboot machine
  shell: sleep 2 && shutdown -r now
  async: 1
  poll: 0
  ignore_errors: true

- name: waiting for host to come back
  wait_for_connection:
    delay: "{{ reboot_delay }}"
    timeout: "{{ reboot_timeout }}"