|
|
@ -142,19 +142,17 @@ EXAMPLES = """
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
RETURN = """
|
|
|
|
RETURN = """
|
|
|
|
|
|
|
|
updates:
|
|
|
|
lines:
|
|
|
|
|
|
|
|
description: The set of commands that will be pushed to the remote device
|
|
|
|
description: The set of commands that will be pushed to the remote device
|
|
|
|
returned: always
|
|
|
|
returned: always
|
|
|
|
type: list
|
|
|
|
type: list
|
|
|
|
sample: ['...', '...']
|
|
|
|
sample: ['...', '...']
|
|
|
|
|
|
|
|
|
|
|
|
response:
|
|
|
|
responses:
|
|
|
|
description: The set of responses from issuing the commands on the device
|
|
|
|
description: The set of responses from issuing the commands on the device
|
|
|
|
returned: always
|
|
|
|
retured: when not check_mode
|
|
|
|
type: list
|
|
|
|
type: list
|
|
|
|
sample: ['...', '...']
|
|
|
|
sample: ['...', '...']
|
|
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
import re
|
|
|
|
import re
|
|
|
|
import itertools
|
|
|
|
import itertools
|
|
|
@ -258,10 +256,10 @@ def main():
|
|
|
|
|
|
|
|
|
|
|
|
if not module.check_mode:
|
|
|
|
if not module.check_mode:
|
|
|
|
response = module.configure(candidate)
|
|
|
|
response = module.configure(candidate)
|
|
|
|
result['response'] = response
|
|
|
|
result['responses'] = response
|
|
|
|
result['changed'] = True
|
|
|
|
result['changed'] = True
|
|
|
|
|
|
|
|
|
|
|
|
result['lines'] = candidate
|
|
|
|
result['updates'] = candidate
|
|
|
|
return module.exit_json(**result)
|
|
|
|
return module.exit_json(**result)
|
|
|
|
|
|
|
|
|
|
|
|
from ansible.module_utils.basic import *
|
|
|
|
from ansible.module_utils.basic import *
|
|
|
|