adjust nohome param when using luser

fixes #32199

(cherry picked from commit bd321a0af6)
This commit is contained in:
Brian Coca 2017-10-27 12:16:21 -04:00
parent 0711f41e3d
commit f79cd6c846
2 changed files with 6 additions and 0 deletions

View file

@ -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>

View file

@ -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')