1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

add DragonFlyBSD support to modules/system/{user,group}

This commit is contained in:
Jonathan Towne 2018-02-07 13:59:05 -05:00 committed by Brian Coca
parent 3b0d864683
commit 1e04cababd
2 changed files with 23 additions and 2 deletions

View file

@ -248,6 +248,15 @@ class FreeBsdGroup(Group):
return (None, '', '')
class DragonFlyBsdGroup(FreeBsdGroup):
"""
This is a DragonFlyBSD Group manipulation class.
It inherits all behaviors from FreeBsdGroup class.
"""
platform = 'DragonFly'
# ===========================================
class DarwinGroup(Group):

View file

@ -119,7 +119,8 @@ options:
default: "no"
login_class:
description:
- Optionally sets the user's login class for FreeBSD, OpenBSD and NetBSD systems.
- Optionally sets the user's login class for FreeBSD, DragonFlyBSD, OpenBSD and
NetBSD systems.
remove:
description:
- When used with C(state=absent), behavior is as with C(userdel --remove).
@ -170,7 +171,7 @@ options:
expires:
description:
- An expiry time for the user in epoch, it will be ignored on platforms that do not support this.
Currently supported on Linux and FreeBSD.
Currently supported on Linux, FreeBSD, and DragonFlyBSD.
version_added: "1.9"
local:
description:
@ -929,6 +930,17 @@ class FreeBsdUser(User):
return (rc, out, err)
class DragonFlyBsdUser(FreeBsdUser):
"""
This is a DragonFlyBSD User manipulation class - it inherits the
FreeBsdUser class behaviors, such as using the pw command to
manipulate the user database, followed by the chpass command
to change the password.
"""
platform = 'DragonFly'
class OpenBSDUser(User):
"""
This is a OpenBSD User manipulation class.