ANSIBLE.WAIT_FOR(3)

NAME
wait_for - Waits for a given port to become accessible on a server.

DESCRIPTION

This is useful for when services are not immediately available after their init scripts return - which is true of certain Java application servers. It is also useful when starting guests with the virt module and needing to pause until they are ready.

OPTIONS

delay
    number of seconds to wait before starting to poll

host
    hostname or IP address to wait for (default: 127.0.0.1)

port
    port number to poll(required)

state
    either started, or stopped depending on whether the module should poll for the port being open or closed. Choices: started,stopped. (default: started)

timeout
    maximum number of seconds to wait for (default: 300)."

EXAMPLES

Example from Ansible Playbooks
wait_for: port=8000 delay=10
None

AUTHOR
Jeroen Hoekx

SEE ALSO
ansible(1), http://ansible.github.com/modules.html#wait-for