Files @ 92011aae7258
Branch filter:

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

branko
MAR-128: Upgraded tests for php_website role:

- Switch to new Molecule configuration.
- Updated set-up playbook to use become: yes.
- Moved some preparatory steps outside of the main playbook (eases
idempotence tests).
- Updated tests to reference the yml inventory file.
- Updated tests to use new fixture (host instead of individual ones).
- Switched to extracting hostname instead of hard-coding it in a
couple of tests.
- Fixed some linting issues.
- Updated hostname to include Debian version.
---

- name: Create directory for storing LDAP database dumps
  file:
    path: "{{ item }}"
    state: directory
    owner: root
    group: root
    mode: 0700
  with_items:
    - "/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: 0700