password can be generated

This commit is contained in:
2023-03-31 16:00:24 +02:00
parent 2f0ba395d1
commit 9211432515

View File

@@ -13,7 +13,7 @@
firstname: "{{ item.firstname }}" firstname: "{{ item.firstname }}"
lastname: "{{ item.lastname }}" lastname: "{{ item.lastname }}"
email: "{{ item.email }}" email: "{{ item.email }}"
password: "{{ item.password }}" password: "{{ (item.password=='')| ternary(lookup('community.general.random_string', min_lower=1, min_upper=1, min_special=1, min_numeric=1, length=14), item.password ) }}"
community.general.ldap_entry: community.general.ldap_entry:
bind_dn: "{{ binddn }}" bind_dn: "{{ binddn }}"
bind_pw: "{{ bindpwd }}" bind_pw: "{{ bindpwd }}"