mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Docs improvements to _config
This commit is contained in:
parent
e375b4c61c
commit
42d5d7b21b
8 changed files with 45 additions and 42 deletions
|
@ -35,7 +35,7 @@ options:
|
||||||
section. The commands must be the exact same commands as found
|
section. The commands must be the exact same commands as found
|
||||||
in the device running-config. Be sure to note the configuration
|
in the device running-config. Be sure to note the configuration
|
||||||
command syntax as some commands are automatically modified by the
|
command syntax as some commands are automatically modified by the
|
||||||
device config parser. This argument is mutually exclusive with O(src).
|
device config parser. This argument is mutually exclusive with I(src).
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
aliases: ['commands']
|
aliases: ['commands']
|
||||||
|
@ -53,7 +53,7 @@ options:
|
||||||
or configuration template to load. The path to the source file can
|
or configuration template to load. The path to the source file can
|
||||||
either be the full path on the Ansible control host or a relative
|
either be the full path on the Ansible control host or a relative
|
||||||
path from the playbook or role root dir. This argument is mutually
|
path from the playbook or role root dir. This argument is mutually
|
||||||
exclusive with O(lines).
|
exclusive with I(lines).
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
before:
|
before:
|
||||||
|
@ -68,7 +68,7 @@ options:
|
||||||
after:
|
after:
|
||||||
description:
|
description:
|
||||||
- The ordered set of commands to append to the end of the command
|
- The ordered set of commands to append to the end of the command
|
||||||
stack if a changed needs to be made. Just like with I(before) this
|
stack if a change needs to be made. Just like with I(before) this
|
||||||
allows the playbook designer to append a set of commands to be
|
allows the playbook designer to append a set of commands to be
|
||||||
executed after the command set.
|
executed after the command set.
|
||||||
required: false
|
required: false
|
||||||
|
|
|
@ -53,7 +53,7 @@ options:
|
||||||
to load into the remote system. The path can either be a full
|
to load into the remote system. The path can either be a full
|
||||||
system path to the configuration file if the value starts with /
|
system path to the configuration file if the value starts with /
|
||||||
or relative to the root of the implemented role or playbook.
|
or relative to the root of the implemented role or playbook.
|
||||||
This arugment is mutually exclusive with the I(lines) and
|
This argument is mutually exclusive with the I(lines) and
|
||||||
I(parents) arguments.
|
I(parents) arguments.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
|
@ -70,7 +70,7 @@ options:
|
||||||
after:
|
after:
|
||||||
description:
|
description:
|
||||||
- The ordered set of commands to append to the end of the command
|
- The ordered set of commands to append to the end of the command
|
||||||
stack if a changed needs to be made. Just like with I(before) this
|
stack if a change needs to be made. Just like with I(before) this
|
||||||
allows the playbook designer to append a set of commands to be
|
allows the playbook designer to append a set of commands to be
|
||||||
executed after the command set.
|
executed after the command set.
|
||||||
required: false
|
required: false
|
||||||
|
@ -81,8 +81,10 @@ options:
|
||||||
the set of commands against the current device config. If
|
the set of commands against the current device config. If
|
||||||
match is set to I(line), commands are matched line by line. If
|
match is set to I(line), commands are matched line by line. If
|
||||||
match is set to I(strict), command lines are matched with respect
|
match is set to I(strict), command lines are matched with respect
|
||||||
to position. Finally if match is set to I(exact), command lines
|
to position. If match is set to I(exact), command lines
|
||||||
must be an equal match.
|
must be an equal match. Finally, if match is set to I(none), the
|
||||||
|
module will not attempt to compare the source configuration with
|
||||||
|
the running configuration on the remote device.
|
||||||
required: false
|
required: false
|
||||||
default: line
|
default: line
|
||||||
choices: ['line', 'strict', 'exact', 'none']
|
choices: ['line', 'strict', 'exact', 'none']
|
||||||
|
@ -104,7 +106,7 @@ options:
|
||||||
cause the module to push the contents of I(src) into the device
|
cause the module to push the contents of I(src) into the device
|
||||||
without first checking if already configured.
|
without first checking if already configured.
|
||||||
- Note this argument should be considered deprecated. To achieve
|
- Note this argument should be considered deprecated. To achieve
|
||||||
the equivalient, set the match argument to none. This argument
|
the equivalent, set the C(match=none) which is idempotent. This argument
|
||||||
will be removed in a future release.
|
will be removed in a future release.
|
||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
|
@ -143,7 +145,7 @@ options:
|
||||||
version_added: "2.2"
|
version_added: "2.2"
|
||||||
save:
|
save:
|
||||||
description:
|
description:
|
||||||
- The I(save) argument will instruct the module to save the
|
- The C(save) argument instructs the module to save the
|
||||||
running-config to startup-config. This operation is performed
|
running-config to startup-config. This operation is performed
|
||||||
after any changes are made to the current running config. If
|
after any changes are made to the current running config. If
|
||||||
no changes are made, the configuration is still saved to the
|
no changes are made, the configuration is still saved to the
|
||||||
|
@ -200,8 +202,8 @@ vars:
|
||||||
RETURN = """
|
RETURN = """
|
||||||
updates:
|
updates:
|
||||||
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: when lines is specified
|
returned: Only when C(lines) is specified.
|
||||||
type: when lines is specified
|
type: list
|
||||||
sample: ['...', '...']
|
sample: ['...', '...']
|
||||||
backup_path:
|
backup_path:
|
||||||
description: The full path to the backup file
|
description: The full path to the backup file
|
||||||
|
|
|
@ -94,7 +94,7 @@ options:
|
||||||
the modified lines are pushed to the device in configuration
|
the modified lines are pushed to the device in configuration
|
||||||
mode. If the replace argument is set to I(block) then the entire
|
mode. If the replace argument is set to I(block) then the entire
|
||||||
command block is pushed to the device in configuration mode if any
|
command block is pushed to the device in configuration mode if any
|
||||||
line is not correct
|
line is not correct.
|
||||||
required: false
|
required: false
|
||||||
default: line
|
default: line
|
||||||
choices: ['line', 'block']
|
choices: ['line', 'block']
|
||||||
|
@ -105,7 +105,7 @@ options:
|
||||||
cause the module to push the contents of I(src) into the device
|
cause the module to push the contents of I(src) into the device
|
||||||
without first checking if already configured.
|
without first checking if already configured.
|
||||||
- Note this argument should be considered deprecated. To achieve
|
- Note this argument should be considered deprecated. To achieve
|
||||||
the equivalient, set the match argument to none. This argument
|
the equivalent, set the C(match=none) which is idempotent. This argument
|
||||||
will be removed in a future release.
|
will be removed in a future release.
|
||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
|
@ -204,8 +204,8 @@ vars:
|
||||||
RETURN = """
|
RETURN = """
|
||||||
updates:
|
updates:
|
||||||
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: Only when C(lines) is specified.
|
||||||
type: when lines is defined
|
type: list
|
||||||
sample: ['...', '...']
|
sample: ['...', '...']
|
||||||
backup_path:
|
backup_path:
|
||||||
description: The full path to the backup file
|
description: The full path to the backup file
|
||||||
|
|
|
@ -63,13 +63,13 @@ options:
|
||||||
a change needs to be made. This allows the playbook designer
|
a change needs to be made. This allows the playbook designer
|
||||||
the opportunity to perform configuration commands prior to pushing
|
the opportunity to perform configuration commands prior to pushing
|
||||||
any changes without affecting how the set of commands are matched
|
any changes without affecting how the set of commands are matched
|
||||||
against the system
|
against the system.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
after:
|
after:
|
||||||
description:
|
description:
|
||||||
- The ordered set of commands to append to the end of the command
|
- The ordered set of commands to append to the end of the command
|
||||||
stack if a changed needs to be made. Just like with I(before) this
|
stack if a change needs to be made. Just like with I(before) this
|
||||||
allows the playbook designer to append a set of commands to be
|
allows the playbook designer to append a set of commands to be
|
||||||
executed after the command set.
|
executed after the command set.
|
||||||
required: false
|
required: false
|
||||||
|
@ -94,7 +94,7 @@ options:
|
||||||
the modified lines are pushed to the device in configuration
|
the modified lines are pushed to the device in configuration
|
||||||
mode. If the replace argument is set to I(block) then the entire
|
mode. If the replace argument is set to I(block) then the entire
|
||||||
command block is pushed to the device in configuration mode if any
|
command block is pushed to the device in configuration mode if any
|
||||||
line is not correct
|
line is not correct.
|
||||||
required: false
|
required: false
|
||||||
default: line
|
default: line
|
||||||
choices: ['line', 'block', 'config']
|
choices: ['line', 'block', 'config']
|
||||||
|
@ -105,7 +105,7 @@ options:
|
||||||
cause the module to push the contents of I(src) into the device
|
cause the module to push the contents of I(src) into the device
|
||||||
without first checking if already configured.
|
without first checking if already configured.
|
||||||
- Note this argument should be considered deprecated. To achieve
|
- Note this argument should be considered deprecated. To achieve
|
||||||
the equivalent, set the match argument to none. This argument
|
the equivalent, set the C(match=none) which is idempotent. This argument
|
||||||
will be removed in a future release.
|
will be removed in a future release.
|
||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
|
@ -177,8 +177,8 @@ vars:
|
||||||
RETURN = """
|
RETURN = """
|
||||||
updates:
|
updates:
|
||||||
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: Only when C(lines) is specified.
|
||||||
type: when lines is defined
|
type: list
|
||||||
sample: ['...', '...']
|
sample: ['...', '...']
|
||||||
backup_path:
|
backup_path:
|
||||||
description: The full path to the backup file
|
description: The full path to the backup file
|
||||||
|
|
|
@ -43,7 +43,7 @@ options:
|
||||||
to load into the remote system. The path can either be a full
|
to load into the remote system. The path can either be a full
|
||||||
system path to the configuration file if the value starts with /
|
system path to the configuration file if the value starts with /
|
||||||
or relative to the root of the implemented role or playbook.
|
or relative to the root of the implemented role or playbook.
|
||||||
This arugment is mutually exclusive with the I(lines) and
|
This argument is mutually exclusive with the I(lines) and
|
||||||
I(parents) arguments.
|
I(parents) arguments.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
|
@ -133,7 +133,7 @@ requirements:
|
||||||
- junos-eznc
|
- junos-eznc
|
||||||
notes:
|
notes:
|
||||||
- This module requires the netconf system service be enabled on
|
- This module requires the netconf system service be enabled on
|
||||||
the remote device being managed
|
the remote device being managed.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
EXAMPLES = """
|
EXAMPLES = """
|
||||||
|
|
|
@ -53,7 +53,7 @@ options:
|
||||||
to load into the remote system. The path can either be a full
|
to load into the remote system. The path can either be a full
|
||||||
system path to the configuration file if the value starts with /
|
system path to the configuration file if the value starts with /
|
||||||
or relative to the root of the implemented role or playbook.
|
or relative to the root of the implemented role or playbook.
|
||||||
This arugment is mutually exclusive with the I(lines) and
|
This argument is mutually exclusive with the I(lines) and
|
||||||
I(parents) arguments.
|
I(parents) arguments.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
|
@ -70,7 +70,7 @@ options:
|
||||||
after:
|
after:
|
||||||
description:
|
description:
|
||||||
- The ordered set of commands to append to the end of the command
|
- The ordered set of commands to append to the end of the command
|
||||||
stack if a changed needs to be made. Just like with I(before) this
|
stack if a change needs to be made. Just like with I(before) this
|
||||||
allows the playbook designer to append a set of commands to be
|
allows the playbook designer to append a set of commands to be
|
||||||
executed after the command set.
|
executed after the command set.
|
||||||
required: false
|
required: false
|
||||||
|
@ -81,11 +81,10 @@ options:
|
||||||
the set of commands against the current device config. If
|
the set of commands against the current device config. If
|
||||||
match is set to I(line), commands are matched line by line. If
|
match is set to I(line), commands are matched line by line. If
|
||||||
match is set to I(strict), command lines are matched with respect
|
match is set to I(strict), command lines are matched with respect
|
||||||
to position. Finally if match is set to I(exact), command lines
|
to position. If match is set to I(exact), command lines
|
||||||
must be an equal match.
|
must be an equal match. Finally, if match is set to I(none), the
|
||||||
- Version 2.2 added a new choice I(none). When match is set to
|
module will not attempt to compare the source configuration with
|
||||||
none, the configure is loaded into the remote device without
|
the running configuration on the remote device.
|
||||||
consulting the configuration.
|
|
||||||
required: false
|
required: false
|
||||||
default: line
|
default: line
|
||||||
choices: ['line', 'strict', 'exact', 'none']
|
choices: ['line', 'strict', 'exact', 'none']
|
||||||
|
@ -107,7 +106,7 @@ options:
|
||||||
cause the module to push the contents of I(src) into the device
|
cause the module to push the contents of I(src) into the device
|
||||||
without first checking if already configured.
|
without first checking if already configured.
|
||||||
- Note this argument should be considered deprecated. To achieve
|
- Note this argument should be considered deprecated. To achieve
|
||||||
the equivalient, set the match argument to none. This argument
|
the equivalent, set the C(match=none) which is idempotent. This argument
|
||||||
will be removed in a future release.
|
will be removed in a future release.
|
||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
|
@ -146,7 +145,7 @@ options:
|
||||||
version_added: "2.2"
|
version_added: "2.2"
|
||||||
save:
|
save:
|
||||||
description:
|
description:
|
||||||
- The I(save) argument will instruct the module to save the
|
- The C(save) argument instructs the module to save the
|
||||||
running-config to startup-config. This operation is performed
|
running-config to startup-config. This operation is performed
|
||||||
after any changes are made to the current running config. If
|
after any changes are made to the current running config. If
|
||||||
no changes are made, the configuration is still saved to the
|
no changes are made, the configuration is still saved to the
|
||||||
|
@ -200,7 +199,7 @@ vars:
|
||||||
RETURN = """
|
RETURN = """
|
||||||
updates:
|
updates:
|
||||||
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: when list is specified
|
returned: Only when C(lines) is specified.
|
||||||
type: list
|
type: list
|
||||||
sample: ['...', '...']
|
sample: ['...', '...']
|
||||||
backup_path:
|
backup_path:
|
||||||
|
@ -331,5 +330,6 @@ def main():
|
||||||
|
|
||||||
module.exit_json(**result)
|
module.exit_json(**result)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -52,7 +52,7 @@ options:
|
||||||
to load into the remote system. The path can either be a full
|
to load into the remote system. The path can either be a full
|
||||||
system path to the configuration file if the value starts with /
|
system path to the configuration file if the value starts with /
|
||||||
or relative to the root of the implemented role or playbook.
|
or relative to the root of the implemented role or playbook.
|
||||||
This arugment is mutually exclusive with the I(lines) and
|
This argument is mutually exclusive with the I(lines) and
|
||||||
I(parents) arguments.
|
I(parents) arguments.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
|
@ -69,7 +69,7 @@ options:
|
||||||
after:
|
after:
|
||||||
description:
|
description:
|
||||||
- The ordered set of commands to append to the end of the command
|
- The ordered set of commands to append to the end of the command
|
||||||
stack if a changed needs to be made. Just like with I(before) this
|
stack if a change needs to be made. Just like with I(before) this
|
||||||
allows the playbook designer to append a set of commands to be
|
allows the playbook designer to append a set of commands to be
|
||||||
executed after the command set.
|
executed after the command set.
|
||||||
required: false
|
required: false
|
||||||
|
@ -80,8 +80,10 @@ options:
|
||||||
the set of commands against the current device config. If
|
the set of commands against the current device config. If
|
||||||
match is set to I(line), commands are matched line by line. If
|
match is set to I(line), commands are matched line by line. If
|
||||||
match is set to I(strict), command lines are matched with respect
|
match is set to I(strict), command lines are matched with respect
|
||||||
to position. Finally if match is set to I(exact), command lines
|
to position. If match is set to I(exact), command lines
|
||||||
must be an equal match.
|
must be an equal match. Finally, if match is set to I(none), the
|
||||||
|
module will not attempt to compare the source configuration with
|
||||||
|
the running configuration on the remote device.
|
||||||
required: false
|
required: false
|
||||||
default: line
|
default: line
|
||||||
choices: ['line', 'strict', 'exact', 'none']
|
choices: ['line', 'strict', 'exact', 'none']
|
||||||
|
@ -103,7 +105,7 @@ options:
|
||||||
cause the module to push the contents of I(src) into the device
|
cause the module to push the contents of I(src) into the device
|
||||||
without first checking if already configured.
|
without first checking if already configured.
|
||||||
- Note this argument should be considered deprecated. To achieve
|
- Note this argument should be considered deprecated. To achieve
|
||||||
the equivalent, set the match argument to none. This argument
|
the equivalent, set the C(match=none) which is idempotent. This argument
|
||||||
will be removed in a future release.
|
will be removed in a future release.
|
||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
|
@ -304,4 +306,3 @@ def main():
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@ options:
|
||||||
a change needs to be made. This allows the playbook designer
|
a change needs to be made. This allows the playbook designer
|
||||||
the opportunity to perform configuration commands prior to pushing
|
the opportunity to perform configuration commands prior to pushing
|
||||||
any changes without affecting how the set of commands are matched
|
any changes without affecting how the set of commands are matched
|
||||||
against the system
|
against the system.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
after:
|
after:
|
||||||
|
@ -94,7 +94,7 @@ options:
|
||||||
the modified lines are pushed to the device in configuration
|
the modified lines are pushed to the device in configuration
|
||||||
mode. If the replace argument is set to I(block) then the entire
|
mode. If the replace argument is set to I(block) then the entire
|
||||||
command block is pushed to the device in configuration mode if any
|
command block is pushed to the device in configuration mode if any
|
||||||
line is not correct
|
line is not correct.
|
||||||
required: false
|
required: false
|
||||||
default: line
|
default: line
|
||||||
choices: ['line', 'block']
|
choices: ['line', 'block']
|
||||||
|
@ -105,7 +105,7 @@ options:
|
||||||
cause the module to push the contents of I(src) into the device
|
cause the module to push the contents of I(src) into the device
|
||||||
without first checking if already configured.
|
without first checking if already configured.
|
||||||
- Note this argument should be considered deprecated. To achieve
|
- Note this argument should be considered deprecated. To achieve
|
||||||
the equivalient, set the match argument to none. This argument
|
the equivalent, set the C(match=none) which is idempotent. This argument
|
||||||
will be removed in a future release.
|
will be removed in a future release.
|
||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
|
|
Loading…
Reference in a new issue