community / community.general / 0.2.1 / module / udm_group Manage of the posix group Authors: Tobias Rüetschi (@keachi)community.general.udm_group (0.2.1) — module
Install with ansible-galaxy collection install community.general:==0.2.1
collections: - name: community.general version: 0.2.1
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.
- name: Create a POSIX group 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 udm_group: name: g123m-1A subpath: 'cn=classes,cn=students,cn=groups' ou: school
# or - name: Create a POSIX group with a DN udm_group: name: g123m-1A position: 'cn=classes,cn=students,cn=groups,ou=school,dc=school,dc=example,dc=com'
ou: description: - LDAP OU, e.g. school for LDAP OU C(ou=school,dc=example,dc=com). required: false name: description: - Name of the posix group. required: true state: choices: - present - absent default: present description: - Whether the group is present or not. required: false subpath: description: - Subpath inside the OU, e.g. C(cn=classes,cn=students,cn=groups). required: false position: description: - define the whole ldap position of the group, e.g. C(cn=g123m-1A,cn=classes,cn=schueler,cn=groups,ou=schule,dc=example,dc=com). required: false description: description: - Group description. required: false