wait_for
Collection: builtin
Full Name: wait_for
Synopsis
Manage wait for
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| host | string | 127.0.0.1 | A resolvable hostname or IP address to wait for | |
| port | int | Port number to check | ||
| path | string | Path to a file on the filesystem that must exist before continuing | ||
| state | string | started | Either present, started, stopped, absent, or drained | |
| timeout | int | 300 | Maximum number of seconds to wait | |
| delay | int | 0 | Number of seconds to wait before starting to poll | |
| sleep | int | 1 | Number of seconds to sleep between checks | |
| connect_timeout | int | 5 | Maximum 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