diff --git a/changelogs/fragments/156-fix_no-log-needed_false_positives.yml b/changelogs/fragments/156-fix_no-log-needed_false_positives.yml new file mode 100644 index 0000000000..07f2996a66 --- /dev/null +++ b/changelogs/fragments/156-fix_no-log-needed_false_positives.yml @@ -0,0 +1,4 @@ +--- +minor_changes: + - authorized_key - add ``no_log=False`` in ``argument_spec`` to clear false-positives of ``no-log-needed`` (https://github.com/ansible-collections/ansible.posix/pull/156). + - mount - add ``no_log=False`` in ``argument_spec`` to clear false-positives of ``no-log-needed`` (https://github.com/ansible-collections/ansible.posix/pull/156). diff --git a/plugins/modules/authorized_key.py b/plugins/modules/authorized_key.py index d860822c45..25c06e3714 100644 --- a/plugins/modules/authorized_key.py +++ b/plugins/modules/authorized_key.py @@ -648,11 +648,11 @@ def main(): module = AnsibleModule( argument_spec=dict( user=dict(type='str', required=True), - key=dict(type='str', required=True), + key=dict(type='str', required=True, no_log=False), path=dict(type='path'), manage_dir=dict(type='bool', default=True), state=dict(type='str', default='present', choices=['absent', 'present']), - key_options=dict(type='str'), + key_options=dict(type='str', no_log=False), exclusive=dict(type='bool', default=False), comment=dict(type='str'), validate_certs=dict(type='bool', default=True), diff --git a/plugins/modules/mount.py b/plugins/modules/mount.py index 519bd63139..e7ce7eefec 100644 --- a/plugins/modules/mount.py +++ b/plugins/modules/mount.py @@ -648,7 +648,7 @@ def main(): fstype=dict(type='str'), path=dict(type='path', required=True, aliases=['name']), opts=dict(type='str'), - passno=dict(type='str'), + passno=dict(type='str', no_log=False), src=dict(type='path'), backup=dict(type='bool', default=False), state=dict(type='str', required=True, choices=['absent', 'mounted', 'present', 'unmounted', 'remounted']),