Commit 05a28ef3 authored by nimrod's avatar nimrod
Browse files

Don't configure LDAPS if the configuration (template) hasn't changed.

parent 970b26be
Loading
Loading
Loading
Loading
+2
Changes for tasks/main.yml: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -93,8 +93,10 @@
    owner: root
    group: root
    mode: '0644'
  register: ldaps_template

- name: Configure LDAPS
  when: ldaps_template.changed
  command: '/usr/bin/ldapmodify -Y EXTERNAL -H ldapi:/// -f /root/ldaps.ldif -D "cn=admin,{{ basedn }}"'
  notify:
    - Restart OpenLDAP