diff --git a/changelogs/fragments/66219-update-user-module-for-64733.yml b/changelogs/fragments/66219-update-user-module-for-64733.yml new file mode 100644 index 00000000000..138c6d98dc1 --- /dev/null +++ b/changelogs/fragments/66219-update-user-module-for-64733.yml @@ -0,0 +1,2 @@ +bugfixes: + - "user - update module to support silencing ``no_log`` warnings in the future (see: https://github.com/ansible/ansible/pull/64733)" diff --git a/lib/ansible/modules/system/user.py b/lib/ansible/modules/system/user.py index e175cbe8410..4f22ec7fa05 100644 --- a/lib/ansible/modules/system/user.py +++ b/lib/ansible/modules/system/user.py @@ -2856,9 +2856,9 @@ def main(): ssh_key_file=dict(type='path'), ssh_key_comment=dict(type='str', default=ssh_defaults['comment']), ssh_key_passphrase=dict(type='str', no_log=True), - update_password=dict(type='str', default='always', choices=['always', 'on_create']), + update_password=dict(type='str', default='always', choices=['always', 'on_create'], no_log=False), expires=dict(type='float'), - password_lock=dict(type='bool'), + password_lock=dict(type='bool', no_log=False), local=dict(type='bool'), profile=dict(type='str'), authorization=dict(type='str'),