if empty, password is generated

This commit is contained in:
2023-03-31 16:18:37 +02:00
parent 9211432515
commit 2f330cf378
3 changed files with 26 additions and 13 deletions

View File

@@ -8,6 +8,15 @@
tags: always
when: binddn is not defined
- name: add ldap ou
community.general.ldap_entry:
dn: "ou={{ org }},{{ ldap_base }}"
bind_dn: "{{ binddn }}"
bind_pw: "{{ bindpwd }}"
objectClass:
- organizationalUnit
- top
- name: read csv file
community.general.read_csv:
path: '{{ file|default( "account.csv" ) }}'
@@ -18,3 +27,4 @@
loop: "{{ users.list }}"