summaryrefslogtreecommitdiff
path: root/roles/reboot-and-wait/tasks/main.yaml
blob: 4c1b7097a92fe2ec4f21083ffae8c1a293326ff0 (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 | default(60) }}"
    timeout: "{{ reboot_timeout | default(300) }}"