Make sure generated password do not start with dashes.

This commit is contained in:
Andreas B. Mundt 2020-02-29 20:28:57 +01:00
parent a6feab0e38
commit 4d70971359
4 changed files with 8 additions and 8 deletions

View file

@ -1,4 +1,4 @@
ldap_admin_pwd: "{{ lookup('password', '/tmp/ldap_admin.pwd length=24') }}"
ldap_admin_pwd: "{{ lookup('password', '/tmp/ldap_admin.pwd chars=ascii_letters,digits length=32') }}"
ldap_admin_pwd_file: "/root/ldap-admin.pwd"
basedn: "{{ 'dc=' + ( ansible_domain | replace('^.','') | replace('.$','') | replace('.',',dc=')) }}"
lan_homes: /home/lan