adjust nohome param when using luser
fixes #32199
(cherry picked from commit bd321a0af6
)
This commit is contained in:
parent
0711f41e3d
commit
f79cd6c846
2 changed files with 6 additions and 0 deletions
|
@ -98,6 +98,8 @@ Ansible Changes By Release
|
|||
https://github.com/ansible/ansible/pull/32269
|
||||
* Fix vars placement in ansible-inventory
|
||||
https://github.com/ansible/ansible/pull/32276
|
||||
* Correct options for luseradd in user module
|
||||
https://github.com/ansible/ansible/pull/32262
|
||||
|
||||
|
||||
<a id="2.4.1"></a>
|
||||
|
|
|
@ -421,6 +421,10 @@ class User(object):
|
|||
|
||||
if self.createhome:
|
||||
cmd.append('-m')
|
||||
if self.local:
|
||||
cmd.append('-M')
|
||||
else:
|
||||
cmd.append('-m')
|
||||
|
||||
if self.skeleton is not None:
|
||||
cmd.append('-k')
|
||||
|
|
Loading…
Reference in a new issue