wait_for

Collection: builtin

Full Name: wait_for

Synopsis

Manage wait for

Parameters

NameTypeRequiredDefaultDescription
hoststring127.0.0.1A resolvable hostname or IP address to wait for
portintPort number to check
pathstringPath to a file on the filesystem that must exist before continuing
statestringstartedEither present, started, stopped, absent, or drained
timeoutint300Maximum number of seconds to wait
delayint0Number of seconds to wait before starting to poll
sleepint1Number of seconds to sleep between checks
connect_timeoutint5Maximum number of seconds to wait for a connection to happen before closing and retrying

Example

- name: Example wait_for task
  wait_for:
    host: 127.0.0.1
    port: 0