diff --git a/lib/ansible/modules/system/user.py b/lib/ansible/modules/system/user.py index b5d335a115..7e3e4c01cd 100755 --- a/lib/ansible/modules/system/user.py +++ b/lib/ansible/modules/system/user.py @@ -933,7 +933,7 @@ class OpenBSDUser(User): cmd.append('-L') cmd.append(self.login_class) - if self.password is not None: + if self.password is not None and self.password != '*': cmd.append('-p') cmd.append(self.password) @@ -1031,7 +1031,8 @@ class OpenBSDUser(User): cmd.append('-L') cmd.append(self.login_class) - if self.update_password == 'always' and self.password is not None and info[1] != self.password: + if self.update_password == 'always' and self.password is not None \ + and self.password != '*' and info[1] != self.password: cmd.append('-p') cmd.append(self.password)