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.

post-reboot.yaml 446B

12345678910111213
  1. ---
  2. - import_role:
  3. name: ssh_host_key
  4. - name: try to connect to ssh
  5. setup:
  6. - name: assert realistic uptime for successful reboot
  7. assert:
  8. that: (ansible_uptime_seconds | int) <= (reboot_uptime_max_seconds | int)
  9. msg: reboot might not have happened because of unplausible uptime of {{ansible_uptime_seconds}} seconds is higher than the expected {{reboot_uptime_max_seconds}} seconds
  10. when: _reboot_shutdown_timestamp is defined