mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add -F to usermod -p to force user password update (#26258)
If changing root password, usermod will fail with error "Login root is currently in use\n". -F avoids this
This commit is contained in:
parent
ea2b89c7ae
commit
34d6f5168f
1 changed files with 1 additions and 0 deletions
|
@ -2096,6 +2096,7 @@ class HPUX(User):
|
|||
cmd.append(self.shell)
|
||||
|
||||
if self.update_password == 'always' and self.password is not None and info[1] != self.password:
|
||||
cmd.append('-F')
|
||||
cmd.append('-p')
|
||||
cmd.append(self.password)
|
||||
|
||||
|
|
Loading…
Reference in a new issue