mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add type casting to user/group modules, remove executable bit from other modules
This commit is contained in:
parent
03db6ef24a
commit
bdb231213d
4 changed files with 18 additions and 18 deletions
|
@ -213,10 +213,10 @@ class AIX(Group):
|
||||||
def main():
|
def main():
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec = dict(
|
argument_spec = dict(
|
||||||
state=dict(default='present', choices=['present', 'absent']),
|
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
||||||
name=dict(required=True),
|
name=dict(required=True, type='str'),
|
||||||
gid=dict(default=None),
|
gid=dict(default=None, type='str'),
|
||||||
system=dict(default='no', choices=['yes', 'no']),
|
system=dict(default='no', choices=['yes', 'no'], type='bool'),
|
||||||
),
|
),
|
||||||
supports_check_mode=True
|
supports_check_mode=True
|
||||||
)
|
)
|
||||||
|
|
0
library/lvol
Executable file → Normal file
0
library/lvol
Executable file → Normal file
0
library/pkgin
Executable file → Normal file
0
library/pkgin
Executable file → Normal file
28
library/user
28
library/user
|
@ -992,15 +992,15 @@ def main():
|
||||||
}
|
}
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec = dict(
|
argument_spec = dict(
|
||||||
state=dict(default='present', choices=['present', 'absent']),
|
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
||||||
name=dict(required=True, aliases=['user']),
|
name=dict(required=True, aliases=['user'], type='str'),
|
||||||
uid=dict(default=None),
|
uid=dict(default=None, type='str'),
|
||||||
group=dict(default=None),
|
group=dict(default=None, type='str'),
|
||||||
groups=dict(default=None),
|
groups=dict(default=None, type='str'),
|
||||||
comment=dict(default=None),
|
comment=dict(default=None, type='str'),
|
||||||
home=dict(default=None),
|
home=dict(default=None, type='str'),
|
||||||
shell=dict(default=None),
|
shell=dict(default=None, type='str'),
|
||||||
password=dict(default=None),
|
password=dict(default=None, type='str'),
|
||||||
# following options are specific to userdel
|
# following options are specific to userdel
|
||||||
force=dict(default='no', type='bool'),
|
force=dict(default='no', type='bool'),
|
||||||
remove=dict(default='no', type='bool'),
|
remove=dict(default='no', type='bool'),
|
||||||
|
@ -1011,11 +1011,11 @@ def main():
|
||||||
append=dict(default='no', type='bool'),
|
append=dict(default='no', type='bool'),
|
||||||
# following are specific to ssh key generation
|
# following are specific to ssh key generation
|
||||||
generate_ssh_key=dict(choices=BOOLEANS, type='bool'),
|
generate_ssh_key=dict(choices=BOOLEANS, type='bool'),
|
||||||
ssh_key_bits=dict(default=ssh_defaults['bits']),
|
ssh_key_bits=dict(default=ssh_defaults['bits'], type='str'),
|
||||||
ssh_key_type=dict(default=ssh_defaults['type']),
|
ssh_key_type=dict(default=ssh_defaults['type'], type='str'),
|
||||||
ssh_key_file=dict(default=None),
|
ssh_key_file=dict(default=None, type='str'),
|
||||||
ssh_key_comment=dict(default=ssh_defaults['comment']),
|
ssh_key_comment=dict(default=ssh_defaults['comment'], type='str'),
|
||||||
ssh_key_passphrase=dict(default=None)
|
ssh_key_passphrase=dict(default=None, type='str')
|
||||||
),
|
),
|
||||||
supports_check_mode=True
|
supports_check_mode=True
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue