our base dn doesn't exist apparently
This commit is contained in:
@@ -1,3 +1,20 @@
|
||||
- name: Ensure base DN exists
|
||||
community.general.ldap_entry:
|
||||
dn: "{{ ldap_basedn }}"
|
||||
state: present
|
||||
objectClass:
|
||||
- top
|
||||
- dcObject
|
||||
- organization
|
||||
attributes:
|
||||
dc: "{{ ldap_basedn.split(',')[0].split('=')[1] }}"
|
||||
o: "{{ ldap_org_name }}"
|
||||
args:
|
||||
server_uri: "{{ ldap_uri }}"
|
||||
bind_dn: "{{ ldap_directory_bind_dn }}"
|
||||
bind_pw: "{{ ldap_directory_bind_pw }}"
|
||||
start_tls: yes
|
||||
|
||||
- name: Create base OUs
|
||||
community.general.ldap_entry:
|
||||
dn: "{{ item }}"
|
||||
|
||||
Reference in New Issue
Block a user