1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

adjust nohome param when using luser

fixes #32199
This commit is contained in:
Brian Coca 2017-10-27 12:16:21 -04:00 committed by Brian Coca
parent 95b31a3b61
commit bd321a0af6

View file

@ -396,7 +396,10 @@ class User(object):
cmd.append(self.password)
if self.create_home:
cmd.append('-m')
if self.local:
cmd.append('-M')
else:
cmd.append('-m')
if self.skeleton is not None:
cmd.append('-k')