Files @ cf15a5f3d965
Branch filter:

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

branko
MAR-218: Quote all octal modes to avoid ambiguity due to changes in YAML standard.
---

- name: Create directory for storing MariaDB database dumps
  ansible.builtin.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
  ansible.builtin.template:
    src: "dump_db.sh.j2"
    dest: "/etc/duply/main/pre.d/dump_{{ db_name }}.sh"
    owner: root
    group: root
    mode: "0700"