Files @ 4b964a31bd96
Branch filter:

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

branko
MAR-95: Separated configuration for backing-up the /root and /home directories in the common role. This should allow user to have better fine-grained control over what gets backed-up in the home directory. Updated role reference documentation. Updated the testsite variable configuration so the new setting can be tested.
---

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

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