community.general.udm_group module – Manage of the posix group
Note
This module is part of the community.general collection (version 8.6.8).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.udm_group
.
Synopsis
This module allows to manage user groups on a univention corporate server (UCS). It uses the python API of the UCS to create a new object or edit it.
Aliases: cloud.univention.udm_group
Parameters
Parameter |
Comments |
---|---|
Group description. |
|
Name of the posix group. |
|
LDAP OU, e.g. school for LDAP OU Default: |
|
define the whole ldap position of the group, e.g. Default: |
|
Whether the group is present or not. Choices:
|
|
Subpath inside the OU, e.g. Default: |
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: full |
Can run in |
|
Support: partial |
Will return details on what has changed (or possibly needs changing in |
Examples
- name: Create a POSIX group
community.general.udm_group:
name: g123m-1A
# Create a POSIX group with the exact DN
# C(cn=g123m-1A,cn=classes,cn=students,cn=groups,ou=school,dc=school,dc=example,dc=com)
- name: Create a POSIX group with a DN
community.general.udm_group:
name: g123m-1A
subpath: 'cn=classes,cn=students,cn=groups'
ou: school
# or
- name: Create a POSIX group with a DN
community.general.udm_group:
name: g123m-1A
position: 'cn=classes,cn=students,cn=groups,ou=school,dc=school,dc=example,dc=com'