Files @ 4a3c8915f967
Branch filter:

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

branko
MAR-80: Added support to wsgi_website and php_website roles to specify list of e-mails or accounts that should receive mails delivered to role's administrator/application users. Updated application users in both roles to use same home directory as the admin. Added .keep file for docs/_static in order to avoid warnings when building documentation.
---

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