mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
rename user option nonunique tot non_unique
This commit is contained in:
parent
f980ec37bb
commit
cb2b7a4e17
1 changed files with 11 additions and 11 deletions
22
library/user
22
library/user
|
@ -41,7 +41,7 @@ options:
|
||||||
required: false
|
required: false
|
||||||
description:
|
description:
|
||||||
- Optionally sets the I(UID) of the user.
|
- Optionally sets the I(UID) of the user.
|
||||||
nonunique:
|
non_unique:
|
||||||
required: false
|
required: false
|
||||||
default: "no"
|
default: "no"
|
||||||
choices: [ "yes", "no" ]
|
choices: [ "yes", "no" ]
|
||||||
|
@ -204,7 +204,7 @@ class User(object):
|
||||||
self.state = module.params['state']
|
self.state = module.params['state']
|
||||||
self.name = module.params['name']
|
self.name = module.params['name']
|
||||||
self.uid = module.params['uid']
|
self.uid = module.params['uid']
|
||||||
self.nonunique = module.params['nonunique']
|
self.non_unique = module.params['non_unique']
|
||||||
self.group = module.params['group']
|
self.group = module.params['group']
|
||||||
self.groups = module.params['groups']
|
self.groups = module.params['groups']
|
||||||
self.comment = module.params['comment']
|
self.comment = module.params['comment']
|
||||||
|
@ -253,7 +253,7 @@ class User(object):
|
||||||
cmd.append('-u')
|
cmd.append('-u')
|
||||||
cmd.append(self.uid)
|
cmd.append(self.uid)
|
||||||
|
|
||||||
if self.nonunique:
|
if self.non_unique:
|
||||||
cmd.append('-o')
|
cmd.append('-o')
|
||||||
|
|
||||||
if self.group is not None:
|
if self.group is not None:
|
||||||
|
@ -306,7 +306,7 @@ class User(object):
|
||||||
cmd.append('-u')
|
cmd.append('-u')
|
||||||
cmd.append(self.uid)
|
cmd.append(self.uid)
|
||||||
|
|
||||||
if self.nonunique:
|
if self.non_unique:
|
||||||
cmd.append('-o')
|
cmd.append('-o')
|
||||||
|
|
||||||
if self.group is not None:
|
if self.group is not None:
|
||||||
|
@ -546,7 +546,7 @@ class FreeBsdUser(User):
|
||||||
cmd.append('-u')
|
cmd.append('-u')
|
||||||
cmd.append(self.uid)
|
cmd.append(self.uid)
|
||||||
|
|
||||||
if self.nonunique:
|
if self.non_unique:
|
||||||
cmd.append('-o')
|
cmd.append('-o')
|
||||||
|
|
||||||
if self.comment is not None:
|
if self.comment is not None:
|
||||||
|
@ -609,7 +609,7 @@ class FreeBsdUser(User):
|
||||||
cmd.append('-u')
|
cmd.append('-u')
|
||||||
cmd.append(self.uid)
|
cmd.append(self.uid)
|
||||||
|
|
||||||
if self.nonunique:
|
if self.non_unique:
|
||||||
cmd.append('-o')
|
cmd.append('-o')
|
||||||
|
|
||||||
if self.comment is not None and info[4] != self.comment:
|
if self.comment is not None and info[4] != self.comment:
|
||||||
|
@ -712,7 +712,7 @@ class SunOS(User):
|
||||||
cmd.append('-u')
|
cmd.append('-u')
|
||||||
cmd.append(self.uid)
|
cmd.append(self.uid)
|
||||||
|
|
||||||
if self.nonunique:
|
if self.non_unique:
|
||||||
cmd.append('-o')
|
cmd.append('-o')
|
||||||
|
|
||||||
if self.group is not None:
|
if self.group is not None:
|
||||||
|
@ -776,7 +776,7 @@ class SunOS(User):
|
||||||
cmd.append('-u')
|
cmd.append('-u')
|
||||||
cmd.append(self.uid)
|
cmd.append(self.uid)
|
||||||
|
|
||||||
if self.nonunique:
|
if self.non_unique:
|
||||||
cmd.append('-o')
|
cmd.append('-o')
|
||||||
|
|
||||||
if self.group is not None:
|
if self.group is not None:
|
||||||
|
@ -884,7 +884,7 @@ class AIX(User):
|
||||||
cmd.append('-u')
|
cmd.append('-u')
|
||||||
cmd.append(self.uid)
|
cmd.append(self.uid)
|
||||||
|
|
||||||
if self.nonunique:
|
if self.non_unique:
|
||||||
cmd.append('-o')
|
cmd.append('-o')
|
||||||
|
|
||||||
if self.group is not None:
|
if self.group is not None:
|
||||||
|
@ -940,7 +940,7 @@ class AIX(User):
|
||||||
cmd.append('-u')
|
cmd.append('-u')
|
||||||
cmd.append(self.uid)
|
cmd.append(self.uid)
|
||||||
|
|
||||||
if self.nonunique:
|
if self.non_unique:
|
||||||
cmd.append('-o')
|
cmd.append('-o')
|
||||||
|
|
||||||
if self.group is not None:
|
if self.group is not None:
|
||||||
|
@ -1028,7 +1028,7 @@ def main():
|
||||||
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
||||||
name=dict(required=True, aliases=['user'], type='str'),
|
name=dict(required=True, aliases=['user'], type='str'),
|
||||||
uid=dict(default=None, type='str'),
|
uid=dict(default=None, type='str'),
|
||||||
nonunique=dict(default='no', type='bool'),
|
non_unique=dict(default='no', type='bool'),
|
||||||
group=dict(default=None, type='str'),
|
group=dict(default=None, type='str'),
|
||||||
groups=dict(default=None, type='str'),
|
groups=dict(default=None, type='str'),
|
||||||
comment=dict(default=None, type='str'),
|
comment=dict(default=None, type='str'),
|
||||||
|
|
Loading…
Reference in a new issue