adjust nohome param when using luser

fixes #32199

(cherry picked from commit bd321a0af6)
pull/32447/head
Brian Coca 8 years ago
parent 0711f41e3d
commit f79cd6c846

@ -98,6 +98,8 @@ Ansible Changes By Release
https://github.com/ansible/ansible/pull/32269 https://github.com/ansible/ansible/pull/32269
* Fix vars placement in ansible-inventory * Fix vars placement in ansible-inventory
https://github.com/ansible/ansible/pull/32276 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> <a id="2.4.1"></a>

@ -421,6 +421,10 @@ class User(object):
if self.createhome: if self.createhome:
cmd.append('-m') cmd.append('-m')
if self.local:
cmd.append('-M')
else:
cmd.append('-m')
if self.skeleton is not None: if self.skeleton is not None:
cmd.append('-k') cmd.append('-k')

Loading…
Cancel
Save