ldap: don't inject custom schema if ldap is already configured
This commit is contained in:
parent
940be65acb
commit
69aa3ab8b8
|
@ -80,8 +80,8 @@
|
|||
src: "{{ ldap_schema }}"
|
||||
dest: "/root/{{ ldap_schema }}"
|
||||
mode: "0640"
|
||||
when: ldap_schema is defined
|
||||
when: not root_ldapvirc_path.stat.exists and ldap_schema is defined
|
||||
|
||||
- name: inject custom schema
|
||||
command: "ldapadd -Y EXTERNAL -H ldapi:/// -f /root/{{ ldap_schema }}"
|
||||
when: ldap_schema is defined
|
||||
when: not root_ldapvirc_path.stat.exists and ldap_schema is defined
|
||||
|
|
Loading…
Reference in a new issue