Brian Coca
9e931f89fb
added ability to control sleep between attempts
...
the default was 1s but it makes sense to make this configurable
2016-12-08 11:25:25 -05:00
Stanislav Antic
4c92652e7b
Fix wait_for on python < 2.6 ( #3790 ) ( #3973 )
2016-12-08 11:24:38 -05:00
Michael Scherer
fefc0cdd50
Fix wait_for to compile on python3 ( #3722 )
2016-12-08 11:24:30 -05:00
Michael Scherer
73a33c02a9
Do not use a tuple as argument for _create_connection ( #3655 )
2016-12-08 11:24:28 -05:00
vaupelt
ae464c5b5e
exclude_hosts does not work as expected with state=drained
...
There are established connections for a service. The service is bound to a ipv4-mapped ipv6 address. Wait_for wrongly waits for clients listed in exclude_hosts.
2016-12-08 11:24:20 -05:00
Toshio Kuratomi
47e9a06784
Specify types in argument_spec instead of code so that checking type vs default value does not trigger
2016-12-08 11:24:08 -05:00
Lars Larsson
542eb2e09c
total_seconds not present on timedelta on python2.6
2016-12-08 11:23:47 -05:00
Toshio Kuratomi
fda9eeaa89
Use select in wait_for so that we don't get stuck in cornercases:
...
* reading from a socket that gave some data we weren't looking for and
then closed.
* read from a socket that stays open and never sends data.
* reading from a socket that sends data but not the data we're looking
for.
Fixes #2051
2016-12-08 11:23:44 -05:00
Andrey Trubachev
b93633d7c2
Fix python-2.4 compatibility
2016-12-08 11:23:25 -05:00
Andrey Trubachev
c55187ff42
Fix 'wait_for' doesn't work with ipv6only host
2016-12-08 11:23:25 -05:00
Greg DeKoenigsberg
eb881d7d5d
Proper author info for all remaining modules
2016-12-08 11:23:07 -05:00
Brian Coca
7ccc2143fd
sleep when only doing a time delay to avoid cpu churn
2016-12-08 11:23:01 -05:00
Brian Coca
00a327bdaa
added docs to show wait_for default timeout settings
...
Fixes #400
2016-12-08 11:22:54 -05:00
Gerard Lynch
1fcc1a7374
wait_for: updated docs, must be resolvable hostname, updated example
2016-12-08 11:22:45 -05:00
Brian Coca
8f197aed48
added missing docs on connection_timeout for wait_for
2016-12-08 11:22:44 -05:00
Brian Coca
ba040784b8
let implied type do the spliting
2016-12-08 11:22:25 -05:00
Brian Coca
7d577e4447
minor fixes to wait_for to avoid tracebacks as per ansible core issue #9244
2016-12-08 11:22:25 -05:00
Michael DeHaan
677ed39cb4
Renames.
2016-12-08 11:22:25 -05:00