ansible.wait_for(3) - Linux man page
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
Author
Jeroen Hoekx
See Also
ansible(1), http://ansible.github.com/modules.html#wait-for