|
|
|
@ -23,9 +23,9 @@ author: "Peter Sprygada (@privateip)"
|
|
|
|
|
short_description: Manage Cisco NXOS device configurations
|
|
|
|
|
description:
|
|
|
|
|
- Manages network device configurations over SSH or NXAPI. This module
|
|
|
|
|
allows implementors to work with the device running-config. It
|
|
|
|
|
allows implementers to work with the device running-config. It
|
|
|
|
|
provides a way to push a set of commands onto a network device
|
|
|
|
|
by evaluting the current running-config and only pushing configuration
|
|
|
|
|
by evaluating the current running-config and only pushing configuration
|
|
|
|
|
commands that are not already configured. The config source can
|
|
|
|
|
be a set of commands or a template.
|
|
|
|
|
extends_documentation_fragment: nxos
|
|
|
|
@ -50,9 +50,9 @@ options:
|
|
|
|
|
include_defaults:
|
|
|
|
|
description:
|
|
|
|
|
- The module, by default, will collect the current device
|
|
|
|
|
running-config to use as a base for comparision to the commands
|
|
|
|
|
running-config to use as a base for comparisons to the commands
|
|
|
|
|
in I(src). Setting this value to true will cause the module
|
|
|
|
|
to issue the command `show running-config all` to include all
|
|
|
|
|
to issue the command C(show running-config all) to include all
|
|
|
|
|
device settings.
|
|
|
|
|
required: false
|
|
|
|
|
default: false
|
|
|
|
@ -73,8 +73,8 @@ options:
|
|
|
|
|
against the contents of source. There are times when it is not
|
|
|
|
|
desirable to have the task get the current running-config for
|
|
|
|
|
every task in a playbook. The I(config) argument allows the
|
|
|
|
|
implementer to pass in the configuruation to use as the base
|
|
|
|
|
config for comparision.
|
|
|
|
|
implementer to pass in the configuration to use as the base
|
|
|
|
|
config for comparison.
|
|
|
|
|
required: false
|
|
|
|
|
default: null
|
|
|
|
|
"""
|
|
|
|
@ -109,12 +109,14 @@ responses:
|
|
|
|
|
sample: ['...', '...']
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_config(module):
|
|
|
|
|
config = module.params['config'] or dict()
|
|
|
|
|
if not config and not module.params['force']:
|
|
|
|
|
config = module.config
|
|
|
|
|
return config
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
|
|
|
|
|
|
argument_spec = dict(
|
|
|
|
|