mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
luseradd defaults to creating w/o need for -m (#32411)
and -M is incorrect in this case
This commit is contained in:
@@ -396,9 +396,7 @@ class User(object):
|
||||
cmd.append(self.password)
|
||||
|
||||
if self.create_home:
|
||||
if self.local:
|
||||
cmd.append('-M')
|
||||
else:
|
||||
if not self.local:
|
||||
cmd.append('-m')
|
||||
|
||||
if self.skeleton is not None:
|
||||
|
||||
Reference in New Issue
Block a user