Files @ 4b5ca3dcf102
Branch filter:

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

branko
MAR-197: Implement environment indicator for the web_server role:

- Now the environment indicator will also cover the default landing
page for the web server.
- Tweaked the landing page to look a bit better in terms of
margins (particularly important for the environment indicator).
---

- 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