mirror of
https://github.com/status-im/infra-role-postgres-ha.git
synced 2025-02-19 18:08:20 +00:00
13 lines
608 B
YAML
13 lines
608 B
YAML
---
|
|
- name: 'Create timer for database backup'
|
|
include_role: name=systemd-timer
|
|
vars:
|
|
systemd_timer_description: 'Dump High-Availability PostgreSQL database.'
|
|
systemd_timer_name: '{{ postgres_ha_backup_service_name }}'
|
|
systemd_timer_user: '{{ postgres_ha_backup_user }}'
|
|
systemd_timer_frequency: '{{ postgres_ha_backup_frequency }}'
|
|
systemd_timer_timeout_sec: '{{ postgres_ha_backup_timeout }}'
|
|
systemd_timer_script_path: '/docker/{{ postgres_ha_service_name }}/backup.sh'
|
|
systemd_timer_after_extra: 'docker.service'
|
|
systemd_timer_start_on_creation: false
|