ldap: don't inject custom schema if ldap is already configured

This commit is contained in:
Victor LABORIE 2017-10-31 10:36:18 +01:00
parent 940be65acb
commit 69aa3ab8b8

View file

@ -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