From 79560410bfec682675c90a264acc0eb904539d2b Mon Sep 17 00:00:00 2001 From: Neha Chugh Date: Thu, 20 Jul 2023 03:29:32 +0530 Subject: [PATCH] Update user module documentation to include MacOS password change behavior (#80958) --- lib/ansible/modules/user.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/modules/user.py b/lib/ansible/modules/user.py index 43b61a83fda..04ecb749459 100644 --- a/lib/ansible/modules/user.py +++ b/lib/ansible/modules/user.py @@ -93,6 +93,9 @@ options: - To create an account with a locked/disabled password on Linux systems, set this to V('!') or V('*'). - To create an account with a locked/disabled password on OpenBSD, set this to V('*************'). - B(OS X/macOS:) Enter the cleartext password as the value. Be sure to take relevant security precautions. + - On macOS, the password specified in the C(password) option will always be set, regardless of whether the user account already exists or not. + - When the password is passed as an argument, the C(user) module will always return changed to C(true) for macOS systems. + Since macOS no longer provides access to the hashed passwords directly. type: str state: description: