1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

changes changed to modified in save_when choices (#26801)

This commit is contained in:
Peter Sprygada 2017-07-14 09:08:19 -04:00 committed by Ricardo Carrillo Cruz
parent 3bbb32cac5
commit b9a1998af5
2 changed files with 11 additions and 11 deletions

View file

@ -174,15 +174,15 @@ options:
changes are not copied to non-volatile storage by default. Using changes are not copied to non-volatile storage by default. Using
this argument will change that before. If the argument is set to this argument will change that before. If the argument is set to
I(always), then the running-config will always be copied to the I(always), then the running-config will always be copied to the
startup-config and the I(changed) flag will always be set to startup-config and the I(modified) flag will always be set to
True. If the argument is set to I(changed), then the running-config True. If the argument is set to I(modified), then the running-config
will only be copied to the startup-config if it has changed since will only be copied to the startup-config if it has changed since
the last save to startup-config. If the argument is set to the last save to startup-config. If the argument is set to
I(never), the running-config will never be copied to the the I(never), the running-config will never be copied to the the
startup-config startup-config
required: false required: false
default: never default: never
choices: ['always', 'never', 'changed'] choices: ['always', 'never', 'modified']
version_added: "2.4" version_added: "2.4"
diff_against: diff_against:
description: description:
@ -255,9 +255,9 @@ EXAMPLES = """
diff_ignore_lines: diff_ignore_lines:
- ntp clock .* - ntp clock .*
- name: save running to startup when changed - name: save running to startup when modified
ios_config: ios_config:
save_when: changed save_when: modified
""" """
RETURN = """ RETURN = """
@ -386,7 +386,7 @@ def main():
defaults=dict(type='bool', default=False), defaults=dict(type='bool', default=False),
backup=dict(type='bool', default=False), backup=dict(type='bool', default=False),
save_when=dict(choices=['always', 'never', 'changed'], default='never'), save_when=dict(choices=['always', 'never', 'modified'], default='never'),
diff_against=dict(choices=['startup', 'intended', 'running']), diff_against=dict(choices=['startup', 'intended', 'running']),
diff_ignore_lines=dict(type='list'), diff_ignore_lines=dict(type='list'),

View file

@ -170,15 +170,15 @@ options:
changes are not copied to non-volatile storage by default. Using changes are not copied to non-volatile storage by default. Using
this argument will change that before. If the argument is set to this argument will change that before. If the argument is set to
I(always), then the running-config will always be copied to the I(always), then the running-config will always be copied to the
startup-config and the I(changed) flag will always be set to startup-config and the I(modified) flag will always be set to
True. If the argument is set to I(changed), then the running-config True. If the argument is set to I(modified), then the running-config
will only be copied to the startup-config if it has changed since will only be copied to the startup-config if it has changed since
the last save to startup-config. If the argument is set to the last save to startup-config. If the argument is set to
I(never), the running-config will never be copied to the the I(never), the running-config will never be copied to the the
startup-config startup-config
required: false required: false
default: never default: never
choices: ['always', 'never', 'changed'] choices: ['always', 'never', 'modified']
version_added: "2.4" version_added: "2.4"
diff_against: diff_against:
description: description:
@ -222,7 +222,7 @@ EXAMPLES = """
- name: configure top level configuration and save it - name: configure top level configuration and save it
nxos_config: nxos_config:
lines: hostname {{ inventory_hostname }} lines: hostname {{ inventory_hostname }}
save_when: changed save_when: modified
- name: diff the running-config against a provided config - name: diff the running-config against a provided config
nxos_config: nxos_config:
@ -317,7 +317,7 @@ def main():
defaults=dict(type='bool', default=False), defaults=dict(type='bool', default=False),
backup=dict(type='bool', default=False), backup=dict(type='bool', default=False),
save_when=dict(choices=['always', 'never', 'changed'], default='never'), save_when=dict(choices=['always', 'never', 'modified'], default='never'),
diff_against=dict(choices=['running', 'startup', 'intended']), diff_against=dict(choices=['running', 'startup', 'intended']),
diff_ignore_lines=dict(type='list'), diff_ignore_lines=dict(type='list'),