Skip to content

wait_for_host

!wait_for_host

Category: control

Poll the target over SSH until it responds, useful after provisioning VMs/LXCs. Fails on timeout.

Parameters

NameTypeRequiredDescription
timeoutintnoMaximum seconds to wait for connectivity. Default 300.
delayintnoSeconds between retry attempts. Default 5.

Examples

- !wait_for_host
  name: Wait for new VM to accept SSH
  timeout: 600
  delay: 10