diff --git a/changelogs/fragments/62184-junos_user_encrypted_password_fix.yaml b/changelogs/fragments/62184-junos_user_encrypted_password_fix.yaml new file mode 100644 index 00000000000..f683bf98a6f --- /dev/null +++ b/changelogs/fragments/62184-junos_user_encrypted_password_fix.yaml @@ -0,0 +1,2 @@ +bugfixes: + - junos_user - Add no_log=True to junos_user `encrypted_password` (https://github.com/ansible/ansible/pull/62184) diff --git a/lib/ansible/modules/network/junos/junos_user.py b/lib/ansible/modules/network/junos/junos_user.py index aaef0faf6fa..1c9c3ed2ac6 100644 --- a/lib/ansible/modules/network/junos/junos_user.py +++ b/lib/ansible/modules/network/junos/junos_user.py @@ -314,7 +314,7 @@ def main(): name=dict(), full_name=dict(), role=dict(choices=ROLES), - encrypted_password=dict(), + encrypted_password=dict(no_log=True), sshkey=dict(), state=dict(choices=['present', 'absent'], default='present'), active=dict(type='bool', default=True)