Merge pull request #5192 from jeromew/ansible_user_removal

user module: force= and remove= should not be mutually exclusive
pull/5184/merge
jctanner 11 years ago
commit 66cf819a68

@ -259,7 +259,7 @@ class User(object):
cmd = [self.module.get_bin_path('userdel', True)] cmd = [self.module.get_bin_path('userdel', True)]
if self.force: if self.force:
cmd.append('-f') cmd.append('-f')
elif self.remove: if self.remove:
cmd.append('-r') cmd.append('-r')
cmd.append(self.name) cmd.append(self.name)

Loading…
Cancel
Save