From 0640a9f8fd9cb36459789d0bc7025765a3bfba7c Mon Sep 17 00:00:00 2001 From: Victor LABORIE Date: Tue, 10 Oct 2017 16:12:08 +0200 Subject: [PATCH] ldap: custom schema can be passed with ldap_schema --- ldap/tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ldap/tasks/main.yml b/ldap/tasks/main.yml index be3a8bd1..b1554725 100644 --- a/ldap/tasks/main.yml +++ b/ldap/tasks/main.yml @@ -75,3 +75,13 @@ command: slapadd -l /root/evolinux_ldap_first-entries.ldif when: not root_ldapvirc_path.stat.exists +- name: upload custom schema + copy: + src: "{{ ldap_schema }}" + dest: "/root/{{ ldap_schema }}" + mode: "0640" + when: ldap_schema is defined + +- name: inject custom schema + command: "ldapadd -Y EXTERNAL -H ldapi:/// -f /root/{{ ldap_schema }}" + when: ldap_schema is defined