addresses https://github.com/ansible/ansible/issues/4371 - adding -m to home directory modification
This commit is contained in:
parent
d1bb1220d5
commit
f40a1e0eae
1 changed files with 6 additions and 0 deletions
|
@ -362,6 +362,7 @@ class User(object):
|
|||
cmd.append(self.comment)
|
||||
|
||||
if self.home is not None and info[5] != self.home:
|
||||
cmd.append('-m')
|
||||
cmd.append('-d')
|
||||
cmd.append(self.home)
|
||||
|
||||
|
@ -651,6 +652,7 @@ class FreeBsdUser(User):
|
|||
cmd.append(self.comment)
|
||||
|
||||
if self.home is not None and info[5] != self.home:
|
||||
cmd.append('-m')
|
||||
cmd.append('-d')
|
||||
cmd.append(self.home)
|
||||
|
||||
|
@ -837,6 +839,7 @@ class OpenBSDUser(User):
|
|||
cmd.append(self.comment)
|
||||
|
||||
if self.home is not None and info[5] != self.home:
|
||||
cmd.append('-m')
|
||||
cmd.append('-d')
|
||||
cmd.append(self.home)
|
||||
|
||||
|
@ -990,6 +993,7 @@ class NetBSDUser(User):
|
|||
cmd.append(self.comment)
|
||||
|
||||
if self.home is not None and info[5] != self.home:
|
||||
cmd.append('-m')
|
||||
cmd.append('-d')
|
||||
cmd.append(self.home)
|
||||
|
||||
|
@ -1149,6 +1153,7 @@ class SunOS(User):
|
|||
cmd.append(self.comment)
|
||||
|
||||
if self.home is not None and info[5] != self.home:
|
||||
cmd.append('-m')
|
||||
cmd.append('-d')
|
||||
cmd.append(self.home)
|
||||
|
||||
|
@ -1301,6 +1306,7 @@ class AIX(User):
|
|||
cmd.append(self.comment)
|
||||
|
||||
if self.home is not None and info[5] != self.home:
|
||||
cmd.append('-m')
|
||||
cmd.append('-d')
|
||||
cmd.append(self.home)
|
||||
|
||||
|
|
Loading…
Reference in a new issue