Merge pull request #5192 from jeromew/ansible_user_removal
user module: force= and remove= should not be mutually exclusive
This commit is contained in:
commit
66cf819a68
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ class User(object):
|
|||
cmd = [self.module.get_bin_path('userdel', True)]
|
||||
if self.force:
|
||||
cmd.append('-f')
|
||||
elif self.remove:
|
||||
if self.remove:
|
||||
cmd.append('-r')
|
||||
cmd.append(self.name)
|
||||
|
||||
|
|
Loading…
Reference in a new issue