mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
added version_added: "2.0" to new parameters
This commit is contained in:
@@ -73,16 +73,19 @@ options:
|
|||||||
- Wait until the server reports a status of 'UP' when state=enabled, or status of 'MAINT' when state=disabled
|
- Wait until the server reports a status of 'UP' when state=enabled, or status of 'MAINT' when state=disabled
|
||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
|
version_added: "2.0"
|
||||||
wait_retries:
|
wait_retries:
|
||||||
description:
|
description:
|
||||||
- number of times to check for status after changing the state
|
- number of times to check for status after changing the state
|
||||||
required: false
|
required: false
|
||||||
default: 20
|
default: 20
|
||||||
|
version_added: "2.0"
|
||||||
wait_interval:
|
wait_interval:
|
||||||
description:
|
description:
|
||||||
- number of seconds to wait between retries
|
- number of seconds to wait between retries
|
||||||
required: false
|
required: false
|
||||||
default: 1
|
default: 1
|
||||||
|
version_added: "2.0"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
@@ -181,7 +184,7 @@ class HAProxy(object):
|
|||||||
|
|
||||||
def wait_until_status(self, pxname, svname, status):
|
def wait_until_status(self, pxname, svname, status):
|
||||||
"""
|
"""
|
||||||
Wait for a server to become active (status == 'UP'). Try RETRIES times
|
Wait for a service to reach the specified status. Try RETRIES times
|
||||||
with INTERVAL seconds of sleep in between. If the service has not reached
|
with INTERVAL seconds of sleep in between. If the service has not reached
|
||||||
the expected status in that time, the module will fail. If the service was
|
the expected status in that time, the module will fail. If the service was
|
||||||
not found, the module will fail.
|
not found, the module will fail.
|
||||||
|
|||||||
Reference in New Issue
Block a user