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

Revert "update mask_passwords argument to be more descriptive in asa_config (#3109)" (#3110)

This reverts commit 271e300745b7200fc57383916d87efd6640d093e.
This commit is contained in:
Peter Sprygada 2016-10-06 16:42:00 -04:00 committed by Matt Clay
parent 1b6a424375
commit 00cc7c03fa

View file

@ -146,14 +146,14 @@ options:
required: false
default: no
choices: ['yes', 'no']
mask_passwords:
passwords:
description:
- This argument specifies to include passwords in the config
when retrieving the running-config from the remote device. This
includes passwords related to VPN endpoints. This argument is
mutually exclusive with I(defaults).
required: true
default: true
required: false
default: no
choices: ['yes', 'no']
save:
description:
@ -235,9 +235,9 @@ from ansible.module_utils.netcfg import NetworkConfig, dumps
def get_config(module):
contents = module.params['config']
if not contents:
if module.params['defaults'] is True:
if module.params['defaults']:
include = 'defaults'
elif module.params['mask_passwords'] is False:
elif module.params['passwords']:
include = 'passwords'
else:
include = None
@ -307,13 +307,13 @@ def main():
config=dict(),
defaults=dict(type='bool', default=False),
mask_passwords=dict(type='bool', default=True),
passwords=dict(type='bool', default=False),
backup=dict(type='bool', default=False),
save=dict(type='bool', default=False),
)
mutually_exclusive = [('lines', 'src'), ('defaults', 'mask_passwords')]
mutually_exclusive = [('lines', 'src'), ('defaults', 'passwords')]
required_if = [('match', 'strict', ['lines']),
('match', 'exact', ['lines']),