Commit f7714178 authored by nimrod's avatar nimrod
Browse files

Handle different backends according to distro version.

parent 0e71600c
Loading
Loading
Loading
Loading
+1 −1
Changes for tasks/main.yml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@

- name: Allow anonymous read access to chsh and chfn
  ldap_attr:
    dn: 'olcDatabase={1}hdb,cn=config'
    dn: 'olcDatabase={1}{{ slapd_backend }},cn=config'
    name: olcAccess
    values: '{1}to attrs=loginShell,gecos by dn="cn=admin,dc=example,dc=com" write by self write by * read'
    state: exact
+3
Changes for vars/main.yml: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
---
# vars file for ansible-openldap

slapd_backend: '{{ "hdb" if (ansible_distribution_release in [ "wheezy", "precise" ])
                         else "mdb" }}'