# just because we can import it on Linux doesn't mean we will use it
exceptImportError:
pass
DOCUMENTATION='''
DOCUMENTATION='''
---
---
...
@@ -38,6 +47,9 @@ description:
...
@@ -38,6 +47,9 @@ description:
- In 1.6 and later, this module can
- In 1.6 and later, this module can
also be used to wait for a file to be available or absent on the
also be used to wait for a file to be available or absent on the
filesystem.
filesystem.
- In 1.8 and later, this module can also be used to wait for active
connections to be closed before continuing, useful if a node
is being rotated out of a load balancer pool.
version_added: "0.7"
version_added: "0.7"
options:
options:
host:
host:
...
@@ -62,10 +74,10 @@ options:
...
@@ -62,10 +74,10 @@ options:
required: false
required: false
state:
state:
description:
description:
- either C(present), C(started), or C(stopped), C(absent)
- either C(present), C(started), or C(stopped), C(absent), or C(drained)
- When checking a port C(started) will ensure the port is open, C(stopped) will check that it is closed
- When checking a port C(started) will ensure the port is open, C(stopped) will check that it is closed, C(drained) will check for active connections
- When checking for a file or a search string C(present) or C(started) will ensure that the file or string is present before continuing, C(absent) will check that file is absent or removed
- When checking for a file or a search string C(present) or C(started) will ensure that the file or string is present before continuing, C(absent) will check that file is absent or removed