Files @ b757d690af42
Branch filter:

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

branko
MAR-75: Implemented support for specifying additional environment variables for the wsgi_website role. Environment is set-up for both the systemd service and for application admin user. Updated testsite implementation to use it for sample WSGI website.
---

- 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