Files @ 5eb7821a1e4d
Branch filter:

Location: majic-ansible-roles/roles/ldap_server/tasks/backup.yml

branko
MAR-218: Switch to using ldap_attrs module:

- Update invocations and syntax.
- Drop the workaround for configuring TLS on the LDAP server (should
be possible to set all relevant attributes at the same time at this
point).
- Group some invocations where it makes sense.
---

- name: Create directory for storing LDAP database dumps
  ansible.builtin.file:
    path: "{{ item }}"
    state: directory
    owner: root
    group: root
    mode: "0700"
  with_items:
    - "/srv/backup"

- name: Deploy script for creating LDAP database backup dumps
  ansible.builtin.copy:
    src: "ldapdump.sh"
    dest: "/etc/duply/main/pre.d/ldapdump.sh"
    owner: root
    group: root
    mode: "0700"