After a reboot task: `fatal: [web01]: FAILED! => {"msg": "Timed out waiting for last boot time check (timeout=600)"}`
IntermediateTroubleshootingConnection and SSH Failures
Answer
Likely causes → The host takes longer than the timeout to boot, networking or SSH does not come up, or boot_time_command fails.
Diagnose → Console log, ansible web01 -m ping repeatedly, check cloud-init and fsck delays.
Fix →
- ansible.builtin.reboot:
reboot_timeout: 1800
connect_timeout: 10
post_reboot_delay: 30
Fix the slow-boot cause (large fsck, network wait).
Prevent → Test reboots in staging and set realistic timeouts.
More on Connection and SSH Failures
`UNREACHABLE! => {"msg": "Failed to connect to the host via ssh: Permission denied (publickey,password)."}`Beginner`UNREACHABLE! => {"msg": "Failed to connect to the host via ssh: ssh: connect to host 10.0.1.15 port 22: Connection timed out"}`Beginner`UNREACHABLE! => {"msg": "Failed to connect to the host via ssh: ssh: connect to host web01 port 22: Connection refused"}`Beginner`Host key verification failed.` after rebuilding a serverBeginnerThe playbook hangs for ever at "Gathering Facts" on one hostIntermediate`Failed to connect to the host via ssh: Too many authentication failures`Intermediate