Files @ 8902cd5aa66b
Branch filter:

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

branko
MAR-218: Improve mail server role test reliability:

- Introduce sleep after sending out mails in order to ensure that
Postfix has had enough time to process the messages.
- Relevant only for tests that take care of parsing the mail log.
- Solves the false negatives caused by timing issues.
- It might be a good idea down the line to implement some kind of
retry/backoff mechanism instead.
---

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