mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
user module: force= and remove= should not be mutually exclusive
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user