You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
275B

  1. ---
  2. - name: reboot
  3. command: shutdown -r 1
  4. async: 0
  5. poll: 0
  6. ignore_errors: true
  7. - name: wait for server
  8. local_action: wait_for host={{ ansible_host | default(inventory_hostname) }} port=22 search_regex=OpenSSH delay={{ reboot_delay | default(60) }} state=started