|
|
|
@ -31,11 +31,6 @@ This module adds shared support for generic api modules
|
|
|
|
In order to use this module, include it as part of a custom
|
|
|
|
In order to use this module, include it as part of a custom
|
|
|
|
module as shown below.
|
|
|
|
module as shown below.
|
|
|
|
|
|
|
|
|
|
|
|
** Note: The order of the import statements does matter. **
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from ansible.module_utils.basic import *
|
|
|
|
|
|
|
|
from ansible.module_utils.api import *
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The 'api' module provides the following common argument specs:
|
|
|
|
The 'api' module provides the following common argument specs:
|
|
|
|
|
|
|
|
|
|
|
|
* rate limit spec
|
|
|
|
* rate limit spec
|
|
|
|
@ -45,7 +40,6 @@ The 'api' module provides the following common argument specs:
|
|
|
|
* retry spec
|
|
|
|
* retry spec
|
|
|
|
- retries: number of attempts
|
|
|
|
- retries: number of attempts
|
|
|
|
- retry_pause: delay between attempts in seconds
|
|
|
|
- retry_pause: delay between attempts in seconds
|
|
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
import time
|
|
|
|
import time
|
|
|
|
|
|
|
|
|
|
|
|
|