missing a piece of my groups saldy
This commit is contained in:
@@ -14,21 +14,6 @@
|
|||||||
# bind_pw: "{{ ldap_admin_pw }}"
|
# bind_pw: "{{ ldap_admin_pw }}"
|
||||||
# start_tls: yes
|
# start_tls: yes
|
||||||
#
|
#
|
||||||
#- name: Ensure group memberships are correct
|
|
||||||
# community.general.ldap_attrs:
|
|
||||||
# dn: "cn={{ item.name }},ou=Groups,{{ ldap_basedn }}"
|
|
||||||
# attributes:
|
|
||||||
# memberUid: "{{ item.members }}"
|
|
||||||
# state: exact
|
|
||||||
# loop: "{{ ldap_groups }}"
|
|
||||||
# when: item.members is defined and item.members | length > 0
|
|
||||||
# args:
|
|
||||||
# server_uri: "{{ ldap_uri }}"
|
|
||||||
# bind_dn: "{{ ldap_admin_dn }}"
|
|
||||||
# bind_pw: "{{ ldap_admin_pw }}"
|
|
||||||
# start_tls: yes
|
|
||||||
#
|
|
||||||
#
|
|
||||||
- name: Ensure LDAP groups exist
|
- name: Ensure LDAP groups exist
|
||||||
community.general.ldap_entry:
|
community.general.ldap_entry:
|
||||||
dn: "cn={{ item.name }},ou=Groups,{{ ldap_basedn }}"
|
dn: "cn={{ item.name }},ou=Groups,{{ ldap_basedn }}"
|
||||||
@@ -46,3 +31,17 @@
|
|||||||
bind_pw: "{{ ldap_admin_pw }}"
|
bind_pw: "{{ ldap_admin_pw }}"
|
||||||
start_tls: yes
|
start_tls: yes
|
||||||
|
|
||||||
|
- name: Ensure group memberships are correct
|
||||||
|
community.general.ldap_attrs:
|
||||||
|
dn: "cn={{ item.name }},ou=Groups,{{ ldap_basedn }}"
|
||||||
|
attributes:
|
||||||
|
memberUid: "{{ item.members }}"
|
||||||
|
state: exact
|
||||||
|
loop: "{{ ldap_groups }}"
|
||||||
|
when: item.members is defined and item.members | length > 0
|
||||||
|
args:
|
||||||
|
server_uri: "{{ ldap_uri }}"
|
||||||
|
bind_dn: "{{ ldap_admin_dn }}"
|
||||||
|
bind_pw: "{{ ldap_admin_pw }}"
|
||||||
|
start_tls: yes
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user