diff --git a/lib/ansible/modules/network/ios/ios_template.py b/lib/ansible/modules/network/ios/ios_template.py index 9ddf31c7e1c..b0a2bf9efb1 100644 --- a/lib/ansible/modules/network/ios/ios_template.py +++ b/lib/ansible/modules/network/ios/ios_template.py @@ -90,7 +90,6 @@ options: """ EXAMPLES = """ - - name: push a configuration onto the device net_config: src: config.j2 @@ -104,18 +103,20 @@ EXAMPLES = """ net_config: src: candidate_config.txt config: current_config.txt - - """ RETURN = """ - -commands: +updates: description: The set of commands that will be pushed to the remote device returned: always type: list - sample: [...] + sample: ['...', '...'] +responses: + description: The set of responses from issuing the commands on the device + retured: when not check_mode + type: list + sample: ['...', '...'] """ def compare(this, other, ignore_missing=False): @@ -202,9 +203,10 @@ def main(): if not module.check_mode: commands = [str(c).strip() for c in commands] response = module.configure(commands) + result['responses'] = response result['changed'] = True - result['commands'] = commands + result['updates'] = commands return module.exit_json(**result)