community.general.udm_group 模块 – 管理 posix 用户组
注意
此模块是 community.general 集合(版本 10.1.0)的一部分。
如果您正在使用 ansible
包,则可能已经安装了此集合。它不包含在 ansible-core
中。要检查是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install community.general
。
要在 playbook 中使用它,请指定:community.general.udm_group
。
概要
此模块允许在 Univention Corporate Server (UCS) 上管理用户组。 它使用 UCS 的 python API 来创建新对象或编辑它。
参数
参数 |
注释 |
---|---|
用户组描述。 |
|
posix 用户组的名称。 |
|
LDAP OU,例如 LDAP OU 默认值: |
|
定义组的整个 ldap 位置,例如 默认值: |
|
组是否存在。 选项
|
|
OU 内的子路径,例如 默认值: |
属性
属性 |
支持 |
描述 |
---|---|---|
支持: 完整 |
可以在 |
|
支持: 部分 |
在 diff 模式下,将返回有关已更改(或可能需要在 |
示例
- 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'