Files
infra/ansible/roles/openldap_directory/tasks/groups.yaml
Jonathan DeMasi a1e6bda361 stupid
2026-01-24 17:25:08 -07:00

16 lines
413 B
YAML

- name: Ensure LDAP groups exist
community.general.ldap_entry:
dn: "cn={{ item.name }},ou=Groups,{{ ldap_basedn }}"
state: present
objectClass:
- posixGroup
attributes:
cn: "{{ item.name }}"
gidNumber: "{{ item.gid }}"
loop: "{{ ldap_groups }}"
args:
server_uri: "{{ ldap_uri }}"
bind_dn: "{{ ldap_admin_dn }}"
bind_pw: "{{ ldap_admin_pw }}"
start_tls: yes