Files @ 8f33126c7555
Branch filter:

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

branko
MAR-119: Updated all test playbooks to mark apt cache update as always idempotent (since it does not play role in actual role idempotence).
---

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

- name: Deploy script for creating database backup dumps
  template:
    src: "dump_db.sh.j2"
    dest: "/etc/duply/main/pre.d/dump_{{ db_name }}.sh"
    owner: root
    group: root
    mode: 0700